mirror of
https://github.com/anope/anope.git
synced 2026-07-09 23:03:12 +02:00
Fix a bug when trying to set BotServ bots as private
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2383 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+4
-3
@@ -20,6 +20,7 @@ class CommandBSSet : public Command
|
||||
public:
|
||||
CommandBSSet() : Command("SET", 3, 3)
|
||||
{
|
||||
this->SetFlag(CFLAG_STRIP_CHANNEL);
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
@@ -35,8 +36,6 @@ class CommandBSSet : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
ci = cs_findchan(chan);
|
||||
|
||||
if (u->nc->HasCommand("botserv/set/private") && !stricmp(option, "PRIVATE"))
|
||||
{
|
||||
BotInfo *bi;
|
||||
@@ -62,7 +61,9 @@ class CommandBSSet : public Command
|
||||
syntax_error(s_BotServ, u, "SET PRIVATE", BOT_SET_PRIVATE_SYNTAX);
|
||||
}
|
||||
return MOD_CONT;
|
||||
} else if (!u->nc->HasPriv("botserv/administration") && !check_access(u, ci, CA_SET))
|
||||
} else if (!(ci = cs_findchan(chan)))
|
||||
notice_lang(s_BotServ, u, CHAN_X_NOT_REGISTERED, chan);
|
||||
else if (!u->nc->HasPriv("botserv/administration") && !check_access(u, ci, CA_SET))
|
||||
notice_lang(s_BotServ, u, ACCESS_DENIED);
|
||||
else {
|
||||
if (!stricmp(option, "DONTKICKOPS")) {
|
||||
|
||||
Reference in New Issue
Block a user