diff options
author | Adam <Adam@anope.org> | 2013-01-06 16:13:35 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-06 16:13:35 -0500 |
commit | ed719c80e75f36475626233207a530de2659a063 (patch) | |
tree | 303c53ce36324b286e10a3e76d98a5e22a13fe1c /modules/commands/cs_log.cpp | |
parent | 77dc2e474669d8f0bee3cc047a10ddcfc4faf700 (diff) |
Buggy compilers are buggy
Diffstat (limited to 'modules/commands/cs_log.cpp')
-rw-r--r-- | modules/commands/cs_log.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index 4965ab561..18270a1a2 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -181,10 +181,12 @@ public: class CSLog : public Module { + ServiceReference<MemoServService> MSService; CommandCSLog commandcslog; public: - CSLog(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), commandcslog(this) + CSLog(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), + MSService("MemoServService", "MemoServ"), commandcslog(this) { this->SetAuthor("Anope"); @@ -212,8 +214,8 @@ class CSLog : public Module } else if (log->method.equals_ci("NOTICE") && l->ci->c && l->ci->bi && l->ci->c->FindUser(l->ci->bi) != NULL) IRCD->SendNotice(l->ci->bi, log->extra + l->ci->c->name, "%s", buffer.c_str()); - else if (log->method.equals_ci("MEMO") && MemoServService && l->ci->WhoSends() != NULL) - MemoServService->Send(l->ci->WhoSends()->nick, l->ci->name, buffer, true); + else if (log->method.equals_ci("MEMO") && MSService && l->ci->WhoSends() != NULL) + MSService->Send(l->ci->WhoSends()->nick, l->ci->name, buffer, true); } } } |