25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-11 15:08:56 +02:00

Merge pull request #2605 from af8a524db1/remove_unused_error

mod_register: Remove unused error 'too_many_users'
This commit is contained in:
Evgeny Khramtsov 2018-09-13 22:36:59 +03:00 committed by GitHub
commit 8c03427c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,9 +344,6 @@ try_register(User, Server, Password, SourceRaw, Lang) ->
{error, xmpp:err_not_allowed(Txt, Lang)};
{error, not_allowed} ->
{error, xmpp:err_not_allowed()};
{error, too_many_users} ->
Txt = <<"Too many users registered">>,
{error, xmpp:err_resource_constraint(Txt, Lang)};
{error, _} ->
?ERROR_MSG("failed to register user "
"~s@~s: ~p",