summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authoradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-23 16:56:38 +0000
committeradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-23 16:56:38 +0000
commitdc8f7923f4c9cd685a338072bcc2bb351bf575d9 (patch)
treecb55529a96b40d43b2646640a06cc248efa76efb /src/protocol.cpp
parent59c1a509b4264648a6ef61e96b85f06f735d6dd6 (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 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 2ad41c675..3b75b29f3 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -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;
+}