1
0
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:
Adam
2012-10-01 02:29:31 -04:00
parent 89428a9d10
commit b19a3af4db
5 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -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;