Mercurial > prosody-hg
comparison util/muc.lua @ 1427:3bcab7c71edf
util.muc: Fixed duplicate parameter names in function room:set_subject
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Fri, 26 Jun 2009 21:51:32 +0500 |
| parents | 6ad9500a90a4 |
| children | 841d61be198f |
comparison
equal
deleted
inserted
replaced
| 1426:6ad9500a90a4 | 1427:3bcab7c71edf |
|---|---|
| 163 end | 163 end |
| 164 end | 164 end |
| 165 | 165 |
| 166 local function room_get_disco_info(self, stanza) end | 166 local function room_get_disco_info(self, stanza) end |
| 167 local function room_get_disco_items(self, stanza) end | 167 local function room_get_disco_items(self, stanza) end |
| 168 local function room_set_subject(room, current_nick, room, subject) | 168 local function room_set_subject(room, current_nick, subject) |
| 169 -- TODO check nick's authority | 169 -- TODO check nick's authority |
| 170 if subject == "" then subject = nil; end | 170 if subject == "" then subject = nil; end |
| 171 room._data['subject'] = subject; | 171 room._data['subject'] = subject; |
| 172 local msg = st.message({type='groupchat', from=current_nick}) | 172 local msg = st.message({type='groupchat', from=current_nick}) |
| 173 :tag('subject'):text(subject):up(); | 173 :tag('subject'):text(subject):up(); |
