From: Badlop Date: Wed, 23 Dec 2009 16:08:20 +0000 (+0000) Subject: Fix error message when register is forbidden by ACL (EJAB-803) X-Git-Tag: v2.1.2~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7f4f39c03c7b3b625d34ca63142f3bf7141e5c7;p=ejabberd Fix error message when register is forbidden by ACL (EJAB-803) SVN Revision: 2823 --- diff --git a/src/mod_register.erl b/src/mod_register.erl index 2ae889c5d..d094ec936 100644 --- a/src/mod_register.erl +++ b/src/mod_register.erl @@ -218,7 +218,7 @@ try_register(User, Server, Password, Source, Lang) -> Access = gen_mod:get_module_opt(Server, ?MODULE, access, all), case acl:match_rule(Server, Access, JID) of deny -> - {error, ?ERR_CONFLICT}; + {error, ?ERR_FORBIDDEN}; allow -> case check_timeout(Source) of true ->