# HG changeset patch # User Kim Alvefur # Date 1461084195 -7200 # Node ID 71a7140200fc5957b90f2f588e750d6d4c1c7b76 # Parent 97fe648176ab164c3fcfc92b2000c382a5cf4531 MUC: Return item-not-found as error when attempting to change role of non-existant occupant diff -r 97fe648176ab -r 71a7140200fc plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Tue Apr 19 18:23:44 2016 +0200 +++ b/plugins/muc/muc.lib.lua Tue Apr 19 18:43:15 2016 +0200 @@ -1184,7 +1184,7 @@ 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";