Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 5613:f3166adab512
mod_muc: Remove unused variable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 May 2013 10:10:09 +0100 |
parent | 5612:5404832d6f7a |
child | 5614:2a3341e7ed32 |
comparison
equal
deleted
inserted
replaced
5612:5404832d6f7a | 5613:f3166adab512 |
---|---|
832 end | 832 end |
833 elseif type == "set" or type == "get" then | 833 elseif type == "set" or type == "get" then |
834 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); | 834 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); |
835 end | 835 end |
836 elseif stanza.name == "message" and type == "groupchat" then | 836 elseif stanza.name == "message" and type == "groupchat" then |
837 local from, to = stanza.attr.from, stanza.attr.to; | 837 local from = stanza.attr.from; |
838 local current_nick = self._jid_nick[from]; | 838 local current_nick = self._jid_nick[from]; |
839 local occupant = self._occupants[current_nick]; | 839 local occupant = self._occupants[current_nick]; |
840 if not occupant then -- not in room | 840 if not occupant then -- not in room |
841 origin.send(st.error_reply(stanza, "cancel", "not-acceptable")); | 841 origin.send(st.error_reply(stanza, "cancel", "not-acceptable")); |
842 elseif occupant.role == "visitor" then | 842 elseif occupant.role == "visitor" then |