Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 5074:a87afeea8b48
mod_muc: Fix syntax error (thanks Florob)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 01 Aug 2012 01:33:21 +0100 |
parent | 5064:7a1eb302c562 |
child | 5195:ce5d7538ac48 |
comparison
equal
deleted
inserted
replaced
5073:ecc89a60b2ba | 5074:a87afeea8b48 |
---|---|
48 function muclib.room_mt:get_affiliation(jid) | 48 function muclib.room_mt:get_affiliation(jid) |
49 if is_admin(jid) then return "owner"; end | 49 if is_admin(jid) then return "owner"; end |
50 return _get_affiliation(self, jid); | 50 return _get_affiliation(self, jid); |
51 end | 51 end |
52 function muclib.room_mt:set_affiliation(actor, jid, affiliation, callback, reason) | 52 function muclib.room_mt:set_affiliation(actor, jid, affiliation, callback, reason) |
53 if is_admin(jid) then return nil, "modify", "not-acceptable";; end | 53 if is_admin(jid) then return nil, "modify", "not-acceptable"; end |
54 return _set_affiliation(self, actor, jid, affiliation, callback, reason); | 54 return _set_affiliation(self, actor, jid, affiliation, callback, reason); |
55 end | 55 end |
56 | 56 |
57 local function room_route_stanza(room, stanza) module:send(stanza); end | 57 local function room_route_stanza(room, stanza) module:send(stanza); end |
58 local function room_save(room, forced) | 58 local function room_save(room, forced) |