1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 01:43:13 +02:00

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
This commit is contained in:
Adam-
2009-11-08 19:53:05 +00:00
parent 1c1312624d
commit 38ad96c57c
+1 -6
View File
@@ -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<ci::string> &params)
@@ -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);