aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-07 20:48:16 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-07 20:48:16 +0500
commit2c2a06c97c55fd68b7f4d2b4eae409dda9d0971f (patch)
tree1dbdea7d9bf1f6ec4a29ce71541f000e4bab694e /plugins/muc/muc.lib.lua
parentff0ed8200542336f0632e9275990193c5b4bf4d4 (diff)
downloadprosody-2c2a06c97c55fd68b7f4d2b4eae409dda9d0971f.tar.gz
prosody-2c2a06c97c55fd68b7f4d2b4eae409dda9d0971f.zip
MUC: Added kicking support.
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 65cf3786..6ab09d33 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -488,6 +488,7 @@ function room_mt:get_role(nick)
return session and session.role or nil;
end
function room_mt:set_role(actor, nick, role, callback)
+ if role == "none" then role = nil; end
if role and role ~= "moderator" and role ~= "participant" and role ~= "visitor" then return nil, "modify", "not-acceptable"; end
if self:get_affiliation(actor) ~= "owner" then return nil, "cancel", "not-allowed"; end
local occupant = self._occupants[nick];