summaryrefslogtreecommitdiff
path: root/modules/commands/ms_sendall.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
committerAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
commitd33a0f75a5c0c584fbb7cc0076da36d494f39494 (patch)
tree7b2274cc833c793c0f5595660cbd4d715de52ffd /modules/commands/ms_sendall.cpp
parent368d469631763e9c8bf399980d0ac7c5b5664d39 (diff)
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each other
Diffstat (limited to 'modules/commands/ms_sendall.cpp')
-rw-r--r--modules/commands/ms_sendall.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/ms_sendall.cpp b/modules/commands/ms_sendall.cpp
index 2fba2ecb3..5ade6722b 100644
--- a/modules/commands/ms_sendall.cpp
+++ b/modules/commands/ms_sendall.cpp
@@ -25,12 +25,12 @@ class CommandMSSendAll : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
- if (!memoserv)
+ if (!MemoServService)
return;
const Anope::string &text = params[0];
- if (readonly)
+ if (Anope::ReadOnly)
{
source.Reply(MEMO_SEND_DISABLED);
return;
@@ -41,7 +41,7 @@ class CommandMSSendAll : public Command
const NickCore *nc = it->second;
if (nc != source.nc)
- memoserv->Send(source.GetNick(), nc->display, text);
+ MemoServService->Send(source.GetNick(), nc->display, text);
}
source.Reply(_("A massmemo has been sent to all registered users."));
@@ -67,7 +67,7 @@ class MSSendAll : public Module
{
this->SetAuthor("Anope");
- if (!memoserv)
+ if (!MemoServService)
throw ModuleException("No MemoServ!");
}
};