mirror of
https://github.com/anope/anope.git
synced 2026-06-25 12:56:38 +02:00
Adds check for using commands on non-registered channels before the
commands are called git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2336 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -228,3 +228,10 @@ void IRCDProto::SendNumeric(const char *source, int numeric, const char *dest, c
|
||||
SendNumericInternal(source, numeric, dest, buf);
|
||||
}
|
||||
|
||||
int IRCDProto::IsChannelValid(const char *chan)
|
||||
{
|
||||
if (*chan != '#')
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user