diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-06-30 22:53:12 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-06-30 22:53:12 +0000 |
commit | c9fed3cb0d87aabbb440f6a14a72601a7f99e8e9 (patch) | |
tree | bad73747bd4867b45f2d5454c94298be2703a9c5 /src | |
parent | 149c3431f50fd1de133202fc76658b65f20e30d4 (diff) |
Check for oper max chans before user max chans, fixes code weirdness and bug #876.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11422 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/channels.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 0532a70e2..1ef761a66 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -263,14 +263,6 @@ Channel* Channel::JoinUser(InspIRCd* Instance, User *user, const char* cn, bool // Checking MyClass exists because we *may* get here with NULL, not 100% sure. if (user->MyClass && user->MyClass->GetMaxChans()) { - if (user->chans.size() >= user->MyClass->GetMaxChans()) - { - user->WriteNumeric(ERR_TOOMANYCHANNELS, "%s %s :You are on too many channels",user->nick.c_str(), cn); - return NULL; - } - } - else - { if (user->HasPrivPermission("channels/high-join-limit")) { if (user->chans.size() >= Instance->Config->OperMaxChans) |