summaryrefslogtreecommitdiff
path: root/src/modules/m_sajoin.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-05-18 18:55:01 +0100
committerPeter Powell <petpow@saberuk.com>2013-05-18 19:11:07 +0100
commit5c9427cde0a949a17a476311db0a2a275345337b (patch)
treebf4cea76e7270f476d3f19ec82db9885db9574c1 /src/modules/m_sajoin.cpp
parent6153822a2de1867b7b90b95e8ed9bc1a8c792c84 (diff)
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.
Diffstat (limited to 'src/modules/m_sajoin.cpp')
-rw-r--r--src/modules/m_sajoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp
index 2724a1ce3..205cd6569 100644
--- a/src/modules/m_sajoin.cpp
+++ b/src/modules/m_sajoin.cpp
@@ -45,7 +45,7 @@ class CommandSajoin : public Command
user->WriteNumeric(ERR_NOPRIVILEGES, "%s :Cannot use an SA command on a u-lined client",user->nick.c_str());
return CMD_FAILURE;
}
- if (IS_LOCAL(user) && !ServerInstance->IsChannel(parameters[1].c_str(), ServerInstance->Config->Limits.ChanMax))
+ if (IS_LOCAL(user) && !ServerInstance->IsChannel(parameters[1]))
{
/* we didn't need to check this for each character ;) */
user->WriteNotice("*** Invalid characters in channel name or name too long");