1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 16:36:39 +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
+3 -3
View File
@@ -282,9 +282,9 @@ Version Module::GetVersion() const
return Version(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD);
}
void Module::SendMessage(BotInfo *from, User *to, const char *fmt, ...)
void Module::SendMessage(CommandSource &source, const char *fmt, ...)
{
Anope::string language = (to && to->Account() ? to->Account()->language : "");
Anope::string language = (source.u && source.u->Account() ? source.u->Account()->language : "");
Anope::string message = GetString(this->name.c_str(), language, fmt);
@@ -298,7 +298,7 @@ void Module::SendMessage(BotInfo *from, User *to, const char *fmt, ...)
Anope::string token;
while (sep.GetToken(token))
to->SendMessage(from->nick, token);
source.Reply(token.c_str());
}
Service::Service(Module *o, const Anope::string &n) : owner(o), name(n)