]> granicus.if.org Git - ejabberd/commitdiff
mod_register: Remove unused error 'too_many_users'
authorMarc Schink <ejabberd-dev@marcschink.de>
Thu, 13 Sep 2018 19:23:40 +0000 (21:23 +0200)
committerMarc Schink <ejabberd-dev@marcschink.de>
Thu, 13 Sep 2018 19:34:12 +0000 (21:34 +0200)
src/mod_register.erl

index cbc3893fdcb88bc1230c12b3c9a43d1cb469f2fc..dbbddbd5dfa37dc1cfc754cb68b9262282dca682 100644 (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",