aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-19 18:43:15 +0200
committerKim Alvefur <zash@zash.se>2016-04-19 18:43:15 +0200
commitffae2c113a67317bd85fb34aea8a828394d8c295 (patch)
treec1c060bb36e6bf4369708af3f6898f980364ce7b /plugins/muc
parentbcaeb22eb70574d9a025e3a6d87e2c7d7b786654 (diff)
downloadprosody-ffae2c113a67317bd85fb34aea8a828394d8c295.tar.gz
prosody-ffae2c113a67317bd85fb34aea8a828394d8c295.zip
MUC: Return item-not-found as error when attempting to change role of non-existant occupant
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 470d199e..18f40758 100644
--- 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";