1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 19:06:38 +02:00

Improve IsChannelValid()

This commit is contained in:
Daniel Vassdal
2014-01-31 04:15:56 -08:00
parent 211a944210
commit 7926238fd2
+3
View File
@@ -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;
}