mirror of
https://github.com/anope/anope.git
synced 2026-07-07 15:23:13 +02:00
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each other
This commit is contained in:
@@ -25,12 +25,12 @@ class CommandMSSendAll : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) 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!");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user