summaryrefslogtreecommitdiff
path: root/modules/extra/cs_entrymsg.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-11-27 00:04:13 -0600
committerAdam <Adam@anope.org>2010-12-12 19:37:00 -0500
commit71c433cc502cc6073dd1e9d5cab3f49f8f6fd49e (patch)
treec9a463b9155471e11a067fd9306bfa152b189b51 /modules/extra/cs_entrymsg.cpp
parent2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 (diff)
The rest of the earlier command changes
Diffstat (limited to 'modules/extra/cs_entrymsg.cpp')
-rw-r--r--modules/extra/cs_entrymsg.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/extra/cs_entrymsg.cpp b/modules/extra/cs_entrymsg.cpp
index 4c6dee644..aae1b5f0e 100644
--- a/modules/extra/cs_entrymsg.cpp
+++ b/modules/extra/cs_entrymsg.cpp
@@ -109,7 +109,7 @@ class CommandEntryMessage : public Command
else if (params.size() < 3)
{
success = false;
- this->OnSyntaxError(u, "");
+ this->OnSyntaxError(source, "");
}
else if (params[1].equals_ci("ADD"))
this->DoAdd(u, ci, params[2]);
@@ -118,7 +118,7 @@ class CommandEntryMessage : public Command
else
{
success = false;
- this->OnSyntaxError(u, "");
+ this->OnSyntaxError(source, "");
}
if (success)
Log(IsFounder(u, ci) ? LOG_COMMAND : LOG_OVERRIDE, u, this, ci) << params[1];
@@ -131,20 +131,20 @@ class CommandEntryMessage : public Command
return MOD_CONT;
}
- void OnSyntaxError(User *u, const Anope::string &)
+ void OnSyntaxError(CommandSource &source, const Anope::string &)
{
- SyntaxError(ChanServ, u, "ENTRYMSG", CHAN_ENTRYMSG_SYNTAX);
+ SyntaxError(source, "ENTRYMSG", CHAN_ENTRYMSG_SYNTAX);
}
- bool OnHelp(User *u, const Anope::string &subcommand)
+ bool OnHelp(CommandSource &source, const Anope::string &subcommand)
{
- u->SendMessage(ChanServ, CHAN_HELP_ENTRYMSG);
+ source.Reply(CHAN_HELP_ENTRYMSG);
return true;
}
- void OnServHelp(User *u)
+ void OnServHelp(CommandSource &source)
{
- u->SendMessage(ChanServ, CHAN_HELP_CMD_ENTRYMSG);
+ source.Reply(CHAN_HELP_CMD_ENTRYMSG);
}
};
@@ -174,7 +174,7 @@ class CSEntryMessage : public Module
if (c->ci->GetExtRegular("cs_entrymsg", messages))
for (unsigned i = 0; i < messages.size(); ++i)
- this->SendMessage(whosends(c->ci), u, "[%s] %s", c->ci->name.c_str(), messages[i].message.c_str());
+ u->SendMessage(whosends(c->ci)->nick, "[%s] %s", c->ci->name.c_str(), messages[i].message.c_str());
}
}