Mercurial > prosody-hg
comparison plugins/mod_muc.lua @ 671:c7519f0c9a2c
mod_muc: Room subject should be sent only the newly joined occupant
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sat, 03 Jan 2009 18:46:52 +0500 |
| parents | 50072761e02d |
| children | bb9583314ec7 |
comparison
equal
deleted
inserted
replaced
| 670:d5cf10b7fc44 | 671:c7519f0c9a2c |
|---|---|
| 189 end | 189 end |
| 190 end | 190 end |
| 191 broadcast_presence(nil, to, room); | 191 broadcast_presence(nil, to, room); |
| 192 -- TODO send discussion history | 192 -- TODO send discussion history |
| 193 if rooms_info:get(room, 'subject') then | 193 if rooms_info:get(room, 'subject') then |
| 194 broadcast_message(room, room, rooms_info:get(room, 'subject'), nil); | 194 core_route_stanza(component, st.message({type='groupchat', from=room, to=from}):tag("subject"):text(rooms_info:get(room, 'subject'))); |
| 195 end | 195 end |
| 196 end | 196 end |
| 197 end | 197 end |
| 198 elseif type ~= 'result' then -- bad type | 198 elseif type ~= 'result' then -- bad type |
| 199 origin.send(st.error_reply(stanza, "modify", "bad-request")); -- FIXME correct error? | 199 origin.send(st.error_reply(stanza, "modify", "bad-request")); -- FIXME correct error? |
