summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_topiclock.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/core/cs_set_topiclock.cpp
parent2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 (diff)
The rest of the earlier command changes
Diffstat (limited to 'modules/core/cs_set_topiclock.cpp')
-rw-r--r--modules/core/cs_set_topiclock.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/modules/core/cs_set_topiclock.cpp b/modules/core/cs_set_topiclock.cpp
index f3327045d..ec96bda1a 100644
--- a/modules/core/cs_set_topiclock.cpp
+++ b/modules/core/cs_set_topiclock.cpp
@@ -22,7 +22,6 @@ class CommandCSSetTopicLock : 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 CommandCSSetTopicLock");
@@ -38,25 +37,25 @@ class CommandCSSetTopicLock : public Command
source.Reply(CHAN_SET_TOPICLOCK_OFF, ci->name.c_str());
}
else
- this->OnSyntaxError(u, "TOPICLOCK");
+ this->OnSyntaxError(source, "TOPICLOCK");
return MOD_CONT;
}
- bool OnHelp(User *u, const Anope::string &)
+ bool OnHelp(CommandSource &source, const Anope::string &)
{
- u->SendMessage(ChanServ, CHAN_HELP_SET_TOPICLOCK, "SET");
+ source.Reply(CHAN_HELP_SET_TOPICLOCK, "SET");
return true;
}
- void OnSyntaxError(User *u, const Anope::string &)
+ void OnSyntaxError(CommandSource &source, const Anope::string &)
{
- SyntaxError(ChanServ, u, "SET", CHAN_SET_TOPICLOCK_SYNTAX);;
+ SyntaxError(source, "SET", CHAN_SET_TOPICLOCK_SYNTAX);;
}
- void OnServHelp(User *u)
+ void OnServHelp(CommandSource &source)
{
- u->SendMessage(ChanServ, CHAN_HELP_CMD_SET_TOPICLOCK);
+ source.Reply(CHAN_HELP_CMD_SET_TOPICLOCK);
}
};
@@ -67,15 +66,15 @@ class CommandCSSASetTopicLock : public CommandCSSetTopicLock
{
}
- bool OnHelp(User *u, const Anope::string &)
+ bool OnHelp(CommandSource &source, const Anope::string &)
{
- u->SendMessage(ChanServ, CHAN_HELP_SET_TOPICLOCK, "SASET");
+ source.Reply(CHAN_HELP_SET_TOPICLOCK, "SASET");
return true;
}
- void OnSyntaxError(User *u, const Anope::string &)
+ void OnSyntaxError(CommandSource &source, const Anope::string &)
{
- SyntaxError(ChanServ, u, "SASET", CHAN_SASET_TOPICLOCK_SYNTAX);
+ SyntaxError(source, "SASET", CHAN_SASET_TOPICLOCK_SYNTAX);
}
};