mirror of
https://github.com/anope/anope.git
synced 2026-07-02 14:13:12 +02:00
Standardized some of the SyntaxError/Help replies and corrected some syntax in BotServ set
This commit is contained in:
@@ -177,7 +177,7 @@ class CommandBSSet : public Command
|
||||
this->OnSyntaxError(source, "MSG");
|
||||
}
|
||||
else
|
||||
source.Reply(UNKNOWN_OPTION, option.c_str(), Config->UseStrictPrivMsgString.c_str(), source.owner->nick.c_str(), this->name.c_str());
|
||||
this->OnSyntaxError(source, "");
|
||||
}
|
||||
|
||||
return;
|
||||
@@ -284,9 +284,11 @@ class CommandBSSet : public Command
|
||||
else if (subcommand.equals_ci("GREET"))
|
||||
this->SendSyntax(source, "\037channel\037 GREET {\037ON|OFF\037}");
|
||||
else if (subcommand.equals_ci("MSG"))
|
||||
this->SendSyntax(source, "\037botname\037 NOBOT {\037ON|OFF\037}");
|
||||
this->SendSyntax(source, "\037channel\037 MSG {\037ON|OFF\037}");
|
||||
else if (subcommand.equals_ci("NOBOT"))
|
||||
this->SendSyntax(source, "\037botname\037 NOBOT {\037ON|OFF\037}");
|
||||
this->SendSyntax(source, "\037channel\037 NOBOT {\037ON|OFF\037}");
|
||||
else
|
||||
this->OnSyntaxError(source, "");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class CommandMSSet : public Command
|
||||
source.Reply(_("%s will not send you any notification of memos."), Config->MemoServ.c_str());
|
||||
}
|
||||
else
|
||||
this->OnSyntaxError(source, param);
|
||||
this->OnSyntaxError(source, "");
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -219,8 +219,7 @@ class CommandMSSet : public Command
|
||||
return this->DoLimit(source, params, mi);
|
||||
else
|
||||
{
|
||||
source.Reply(NICK_SET_UNKNOWN_OPTION, Config->UseStrictPrivMsgString.c_str(), cmd.c_str());
|
||||
source.Reply(MORE_INFO, Config->UseStrictPrivMsgString.c_str(), source.owner->nick.c_str(), "SET");
|
||||
this->OnSyntaxError(source, "");
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
@@ -189,7 +189,7 @@ class CommandOSSet : public Command
|
||||
else if (option.equals_ci("NOEXPIRE"))
|
||||
return this->DoSetNoExpire(source, params);
|
||||
else
|
||||
source.Reply(_("Unknown option \002%s\002."), option.c_str());
|
||||
this->OnSyntaxError(source, "");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user