projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e18dff0
)
MUC: Return item-not-found as error when attempting to change role of non-existant...
author
Kim Alvefur
<zash@zash.se>
Tue, 19 Apr 2016 16:43:15 +0000
(18:43 +0200)
committer
Kim Alvefur
<zash@zash.se>
Tue, 19 Apr 2016 16:43:15 +0000
(18:43 +0200)
plugins/muc/muc.lib.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/muc.lib.lua
b/plugins/muc/muc.lib.lua
index 470d199e4e366c24d872266bdd61608c89dd8d5f..18f407581243ba6298790e2f6cbee6cf662cd6d2 100644
(file)
--- a/
plugins/muc/muc.lib.lua
+++ b/
plugins/muc/muc.lib.lua
@@
-1184,7
+1184,7
@@
function room_mt:set_role(actor, occupant_jid, role, reason)
if not actor then return nil, "modify", "not-acceptable"; end
local occupant = self:get_occupant_by_nick(occupant_jid);
- if not occupant then return nil, "modify", "
not-acceptable
"; end
+ if not occupant then return nil, "modify", "
item-not-found
"; end
if valid_roles[role or "none"] == nil then
return nil, "modify", "not-acceptable";