mirror of
https://github.com/anope/anope.git
synced 2026-06-30 19:06:38 +02:00
Improve IsChannelValid()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user