diff options
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) { } |
