diff options
author | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
commit | a1b36ec0a527e6d7a9d224b56bf9571619d5f92e (patch) | |
tree | 5e74290f46205ef1ad86700e1f04ec016b1f66fd /src/modules.cpp | |
parent | 48e995ddf2cd30a05222a51e665c02b1e7ae567a (diff) |
Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index f77b28676..c379a66dd 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -108,28 +108,6 @@ int Module::DelCommand(BotInfo *bi, Command *c) return MOD_ERR_OK; } -void Module::SendMessage(CommandSource &source, const char *fmt, ...) -{ - Anope::string language = (source.u && source.u->Account() ? source.u->Account()->language : ""); - - PushLanguage(this->name, language); - fmt = anope_gettext(fmt); - - va_list args; - char buf[4096]; - va_start(args, fmt); - vsnprintf(buf, sizeof(buf) - 1, fmt, args); - va_end(args); - - sepstream sep(buf, '\n'); - Anope::string token; - - while (sep.GetToken(token)) - source.Reply(token); - - PopLanguage(); -} - Service::Service(Module *o, const Anope::string &n) : owner(o), name(n) { } |