mirror of
https://github.com/anope/anope.git
synced 2026-07-04 11:43:12 +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,13 +25,13 @@ class CommandMSSend : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override
|
||||
{
|
||||
if (!memoserv)
|
||||
if (!MemoServService)
|
||||
return;
|
||||
|
||||
const Anope::string &nick = params[0];
|
||||
const Anope::string &text = params[1];
|
||||
|
||||
MemoServService::MemoResult result = memoserv->Send(source.GetNick(), nick, text);
|
||||
MemoServService::MemoResult result = MemoServService->Send(source.GetNick(), nick, text);
|
||||
if (result == MemoServService::MEMO_SUCCESS)
|
||||
source.Reply(_("Memo sent to \002%s\002."), nick.c_str());
|
||||
else if (result == MemoServService::MEMO_INVALID_TARGET)
|
||||
@@ -66,7 +66,7 @@ class MSSend : public Module
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
if (!memoserv)
|
||||
if (!MemoServService)
|
||||
throw ModuleException("No MemoServ!");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user