mirror of
https://github.com/anope/anope.git
synced 2026-07-07 04:43:13 +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:
+2
-1
@@ -219,7 +219,8 @@ enum CommandFlags
|
||||
{
|
||||
CFLAG_ALLOW_UNREGISTERED = 1,
|
||||
CFLAG_ALLOW_FORBIDDEN = 2,
|
||||
CFLAG_ALLOW_SUSPENDED = 4
|
||||
CFLAG_ALLOW_SUSPENDED = 4,
|
||||
CFLAG_ALLOW_UNREGISTEREDCHANNEL = 8
|
||||
};
|
||||
|
||||
/** Every services command is a class, inheriting from Command.
|
||||
|
||||
+1
-1
@@ -1340,7 +1340,7 @@ class CoreExport IRCDProto
|
||||
virtual void SendServer(Server *) = 0;
|
||||
virtual void ProcessUsermodes(User *, int, const char **) = 0;
|
||||
virtual int IsNickValid(const char *) { return 1; }
|
||||
virtual int IsChannelValid(const char *) { return 1; }
|
||||
virtual int IsChannelValid(const char *);
|
||||
virtual int IsFloodModeParamValid(const char *) { return 0; }
|
||||
virtual void SendNumeric(const char *source, int numeric, const char *dest, const char *fmt, ...);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user