From c7f4f39c03c7b3b625d34ca63142f3bf7141e5c7 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 23 Dec 2009 16:08:20 +0000 Subject: [PATCH] Fix error message when register is forbidden by ACL (EJAB-803) SVN Revision: 2823 --- src/mod_register.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ->