From 5c9427cde0a949a17a476311db0a2a275345337b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 18 May 2013 18:55:01 +0100 Subject: Remove the size argument from IsChannel and IsNick. There was only one case (which was probably an error) where these methods were not set to their ServerLimits value. --- src/modules/m_operjoin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_operjoin.cpp') diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index faeeb8b55..e890c3afb 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -83,7 +83,7 @@ class ModuleOperjoin : public Module return; for (std::vector::const_iterator i = operChans.begin(); i != operChans.end(); ++i) - if (ServerInstance->IsChannel(*i, ServerInstance->Config->Limits.ChanMax)) + if (ServerInstance->IsChannel(*i)) Channel::JoinUser(localuser, *i, override); std::string chanList = localuser->oper->getConfig("autojoin"); @@ -93,7 +93,7 @@ class ModuleOperjoin : public Module tokenize(chanList, typechans); for (std::vector::const_iterator it = typechans.begin(); it != typechans.end(); ++it) { - if (ServerInstance->IsChannel(*it, ServerInstance->Config->Limits.ChanMax)) + if (ServerInstance->IsChannel(*it)) { Channel::JoinUser(localuser, *it, override); } -- cgit v1.3.1-10-gc9f91