1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 12:36:38 +02:00

The rest of the earlier command changes

This commit is contained in:
Adam
2010-11-27 00:04:13 -06:00
parent 2b10cc84ea
commit 71c433cc50
158 changed files with 1575 additions and 1615 deletions
+5 -5
View File
@@ -123,14 +123,14 @@ const Anope::string GetString(const char *domain, Anope::string language, const
}
#endif
void SyntaxError(BotInfo *bi, User *u, const Anope::string &command, LanguageString message)
void SyntaxError(CommandSource &source, const Anope::string &command, LanguageString message)
{
if (!bi || !u || command.empty())
if (command.empty())
return;
Anope::string str = GetString(u, message);
u->SendMessage(bi, SYNTAX_ERROR, str.c_str());
u->SendMessage(bi, MORE_INFO, bi->nick.c_str(), command.c_str());
Anope::string str = GetString(source.u, message);
source.Reply(SYNTAX_ERROR, str.c_str());
source.Reply(MORE_INFO, source.owner->nick.c_str(), command.c_str());
}
const char *const language_strings[LANG_STRING_COUNT] = {