Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 5680:24b044f6e06d
mod_muc: Fix incorrect variable name
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 21 May 2013 10:10:28 +0100 |
| parents | 8b09b0d068d4 |
| children | 43cc1f95395e 3ee3d79db18c |
comparison
equal
deleted
inserted
replaced
| 5678:b7ebeae14053 | 5680:24b044f6e06d |
|---|---|
| 1053 local session = self._occupants[nick]; | 1053 local session = self._occupants[nick]; |
| 1054 return session and session.role or nil; | 1054 return session and session.role or nil; |
| 1055 end | 1055 end |
| 1056 function room_mt:can_set_role(actor_jid, occupant_jid, role) | 1056 function room_mt:can_set_role(actor_jid, occupant_jid, role) |
| 1057 local occupant = self._occupants[occupant_jid]; | 1057 local occupant = self._occupants[occupant_jid]; |
| 1058 if not occupant or not actor then return nil, "modify", "not-acceptable"; end | 1058 if not occupant or not actor_jid then return nil, "modify", "not-acceptable"; end |
| 1059 | 1059 |
| 1060 if actor_jid == true then return true; end | 1060 if actor_jid == true then return true; end |
| 1061 | 1061 |
| 1062 local actor = self._occupants[self._jid_nick[actor_jid]]; | 1062 local actor = self._occupants[self._jid_nick[actor_jid]]; |
| 1063 if actor.role == "moderator" then | 1063 if actor.role == "moderator" then |
