Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 5614:2a3341e7ed32
mod_muc: Fix incorrect variable name
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 21 May 2013 10:10:28 +0100 |
| parents | f3166adab512 |
| children | 4fd2708fe8df |
comparison
equal
deleted
inserted
replaced
| 5613:f3166adab512 | 5614:2a3341e7ed32 |
|---|---|
| 1006 local session = self._occupants[nick]; | 1006 local session = self._occupants[nick]; |
| 1007 return session and session.role or nil; | 1007 return session and session.role or nil; |
| 1008 end | 1008 end |
| 1009 function room_mt:can_set_role(actor_jid, occupant_jid, role) | 1009 function room_mt:can_set_role(actor_jid, occupant_jid, role) |
| 1010 local occupant = self._occupants[occupant_jid]; | 1010 local occupant = self._occupants[occupant_jid]; |
| 1011 if not occupant or not actor then return nil, "modify", "not-acceptable"; end | 1011 if not occupant or not actor_jid then return nil, "modify", "not-acceptable"; end |
| 1012 | 1012 |
| 1013 if actor_jid == true then return true; end | 1013 if actor_jid == true then return true; end |
| 1014 | 1014 |
| 1015 local actor = self._occupants[self._jid_nick[actor_jid]]; | 1015 local actor = self._occupants[self._jid_nick[actor_jid]]; |
| 1016 if actor.role == "moderator" then | 1016 if actor.role == "moderator" then |
