summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2014-02-01 11:12:39 -0800
committerAdam <adam@sigterm.info>2014-02-01 11:12:39 -0800
commitc30fb13a0cb071a1bc74a6c63be318303925e25d (patch)
treeef05fccf9a359a2c1fb28c28ef3ad62e51dc74e9 /src
parent4455d4346c6b806d9b0754c1dffb6adf9e90887a (diff)
parent7926238fd250ee8d2b5d8ba3118db2520c4a1a40 (diff)
Merge pull request #43 from ShutterQuick/2.0+ajoinfix
2.0+ajoinfix
Diffstat (limited to 'src')
-rw-r--r--src/protocol.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 2287447b6..01c8d31c8 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -322,6 +322,9 @@ bool IRCDProto::IsChannelValid(const Anope::string &chan)
if (chan.empty() || chan[0] != '#' || chan.length() > Config->GetBlock("networkinfo")->Get<unsigned>("chanlen"))
return false;
+ if (chan.find_first_of(" ,") != Anope::string::npos)
+ return false;
+
return true;
}