Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 1997:c70ee886e309
MUC: Fixed an incorrect error message.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sun, 18 Oct 2009 05:37:28 +0500 |
| parents | 3e6b36c6d7b7 |
| children | 40792c18a8e4 |
comparison
equal
deleted
inserted
replaced
| 1996:3e6b36c6d7b7 | 1997:c70ee886e309 |
|---|---|
| 518 end | 518 end |
| 519 elseif stanza.name == "message" and type == "error" and get_kickable_error(stanza) then | 519 elseif stanza.name == "message" and type == "error" and get_kickable_error(stanza) then |
| 520 local current_nick = self._jid_nick[stanza.attr.from]; | 520 local current_nick = self._jid_nick[stanza.attr.from]; |
| 521 log("debug", "%s kicked from %s for sending an error message", current_nick, self.jid); | 521 log("debug", "%s kicked from %s for sending an error message", current_nick, self.jid); |
| 522 self:handle_to_occupant(origin, st.presence({type='unavailable', from=stanza.attr.from, to=stanza.attr.to}) | 522 self:handle_to_occupant(origin, st.presence({type='unavailable', from=stanza.attr.from, to=stanza.attr.to}) |
| 523 :tag('status'):text('This participant is kicked from the room because he sent an error message to another occupant')); -- send unavailable | 523 :tag('status'):text('This participant is kicked from the room because he sent an error message')); -- send unavailable |
| 524 elseif stanza.name == "presence" then -- hack - some buggy clients send presence updates to the room rather than their nick | 524 elseif stanza.name == "presence" then -- hack - some buggy clients send presence updates to the room rather than their nick |
| 525 local to = stanza.attr.to; | 525 local to = stanza.attr.to; |
| 526 local current_nick = self._jid_nick[stanza.attr.from]; | 526 local current_nick = self._jid_nick[stanza.attr.from]; |
| 527 if current_nick then | 527 if current_nick then |
| 528 stanza.attr.to = current_nick; | 528 stanza.attr.to = current_nick; |
