25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-09 15:06:54 +02:00

Fix error message when register is forbidden by ACL (EJAB-803)

SVN Revision: 2823
This commit is contained in:
Badlop 2009-12-23 16:08:20 +00:00
parent b2d6a25240
commit c7f4f39c03

View File

@ -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 ->