From 38ad96c57c520dd84c8de21766f5de082a844a99 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 8 Nov 2009 19:53:05 +0000 Subject: [PATCH] Fixed /chanserv help forbid to allow you to forbid unregistered channels git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2634 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_forbid.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/cs_forbid.c b/src/core/cs_forbid.c index 587232794..edc0ef37d 100644 --- a/src/core/cs_forbid.c +++ b/src/core/cs_forbid.c @@ -20,6 +20,7 @@ class CommandCSForbid : public Command public: CommandCSForbid() : Command("FORBID", 1, 2, "chanserv/forbid") { + this->SetFlag(CFLAG_ALLOW_UNREGISTEREDCHANNEL); } CommandReturn Execute(User *u, std::vector ¶ms) @@ -42,12 +43,6 @@ class CommandCSForbid : public Command return MOD_CONT; } - if (!ircdproto->IsChannelValid(chan)) - { - notice_lang(s_ChanServ, u, CHAN_X_INVALID, chan); - return MOD_CONT; - } - if (readonly) { notice_lang(s_ChanServ, u, READ_ONLY_MODE);