diff options
author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-23 16:56:38 +0000 |
---|---|---|
committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-23 16:56:38 +0000 |
commit | dc8f7923f4c9cd685a338072bcc2bb351bf575d9 (patch) | |
tree | cb55529a96b40d43b2646640a06cc248efa76efb /include | |
parent | 59c1a509b4264648a6ef61e96b85f06f735d6dd6 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 3 | ||||
-rw-r--r-- | include/services.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index 8c45bdeaa..db1c2f0a3 100644 --- a/include/modules.h +++ b/include/modules.h @@ -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. diff --git a/include/services.h b/include/services.h index 5dcb83183..55b437da3 100644 --- a/include/services.h +++ b/include/services.h @@ -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, ...); |