summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_description.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_set_description.cpp')
-rw-r--r--modules/core/cs_set_description.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/modules/core/cs_set_description.cpp b/modules/core/cs_set_description.cpp
index b4d13b92c..4dff9283f 100644
--- a/modules/core/cs_set_description.cpp
+++ b/modules/core/cs_set_description.cpp
@@ -22,33 +22,32 @@ class CommandCSSetDescription : public Command
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
- User *u = source.u;
ChannelInfo *ci = source.ci;
if (!ci)
throw CoreException("NULL ci in CommandCSSetDescription");
ci->desc = params[1];
- u->SendMessage(ChanServ, CHAN_DESC_CHANGED, ci->name.c_str(), ci->desc.c_str());
+ source.Reply(CHAN_DESC_CHANGED, ci->name.c_str(), ci->desc.c_str());
return MOD_CONT;
}
- bool OnHelp(User *u, const Anope::string &)
+ bool OnHelp(CommandSource &source, const Anope::string &)
{
- u->SendMessage(ChanServ, CHAN_HELP_SET_DESC, "SET");
+ source.Reply(CHAN_HELP_SET_DESC, "SET");
return true;
}
- void OnSyntaxError(User *u, const Anope::string &)
+ void OnSyntaxError(CommandSource &source, const Anope::string &)
{
// XXX
- SyntaxError(ChanServ, u, "SET", CHAN_SET_SYNTAX);
+ SyntaxError(source, "SET", CHAN_SET_SYNTAX);
}
- void OnServHelp(User *u)
+ void OnServHelp(CommandSource &source)
{
- u->SendMessage(ChanServ, CHAN_HELP_CMD_SET_DESC);
+ source.Reply(CHAN_HELP_CMD_SET_DESC);
}
};
@@ -59,16 +58,16 @@ class CommandCSSASetDescription : public CommandCSSetDescription
{
}
- bool OnHelp(User *u, const Anope::string &)
+ bool OnHelp(CommandSource &source, const Anope::string &)
{
- u->SendMessage(ChanServ, CHAN_HELP_SET_DESC, "SASET");
+ source.Reply(CHAN_HELP_SET_DESC, "SASET");
return true;
}
- void OnSyntaxError(User *u, const Anope::string &)
+ void OnSyntaxError(CommandSource &source, const Anope::string &)
{
// XXX
- SyntaxError(ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
+ SyntaxError(source, "SASET", CHAN_SASET_SYNTAX);
}
};