From dc8f7923f4c9cd685a338072bcc2bb351bf575d9 Mon Sep 17 00:00:00 2001 From: adam- Date: Tue, 23 Jun 2009 16:56:38 +0000 Subject: 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 --- src/protocol/unreal32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocol') diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 24f406dd6..773717495 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -899,7 +899,7 @@ class UnrealIRCdProto : public IRCDProto int IsChannelValid(const char *chan) { - if (strchr(chan, ':')) return 0; + if (strchr(chan, ':') || *chan != '#') return 0; return 1; } -- cgit