diff options
author | Adam <Adam@anope.org> | 2010-11-27 00:04:13 -0600 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:37:00 -0500 |
commit | 71c433cc502cc6073dd1e9d5cab3f49f8f6fd49e (patch) | |
tree | c9a463b9155471e11a067fd9306bfa152b189b51 /src/modules.cpp | |
parent | 2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 (diff) |
The rest of the earlier command changes
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 1fc83c06e..63e6bcab3 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -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) |