summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-01 02:29:31 -0400
committerAdam <Adam@anope.org>2012-10-01 02:29:31 -0400
commitb19a3af4db6fefdf3d94963163eb00e7133c8046 (patch)
tree75c8b43d4480ba285940eb218fcd3231f1bcef97 /src/protocol.cpp
parent89428a9d1032e3c2a6e397629a32862b3e58d708 (diff)
Add networkinfo:chanlen config directive
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index e9ab88c77..c6ace2a16 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -310,7 +310,7 @@ void IRCDProto::SendNumeric(int numeric, const Anope::string &dest, const char *
bool IRCDProto::IsChannelValid(const Anope::string &chan)
{
- if (chan[0] != '#')
+ if (chan.empty() || chan[0] != '#' || chan.length() > Config->ChanLen)
return false;
return true;