mirror of
https://github.com/anope/anope.git
synced 2026-06-30 05:16:38 +02:00
Add networkinfo:chanlen config directive
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user