summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_admin.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl
index e36e3398..d80e7158 100644
--- a/src/mod_muc_admin.erl
+++ b/src/mod_muc_admin.erl
@@ -1244,7 +1244,7 @@ set_room_affiliation(Name, Service, JID, AffiliationString) ->
case mod_muc_room:change_item(Pid, jid:decode(JID), affiliation, Affiliation, <<"">>) of
{ok, _} ->
ok;
- {error, not_found} ->
+ {error, notfound} ->
throw({error, "Room doesn't exists"});
{error, _} ->
throw({error, "Unable to perform change"})