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:
@@ -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> ¶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);
|
||||
|
||||
Reference in New Issue
Block a user