mirror of
https://github.com/anope/anope.git
synced 2026-07-07 18:03:13 +02:00
Epic commit to replace most of the strings in Anope with a single Anope::string class, plus some other little fixes here and there. If you follow 1.9.x development and are testing things, THIS is one of those things that NEEDS testing.
This commit is contained in:
@@ -16,21 +16,21 @@
|
||||
class CommandCSSetTopicLock : public Command
|
||||
{
|
||||
public:
|
||||
CommandCSSetTopicLock(const ci::string &cname, const ci::string &cpermission = "") : Command(cname, 2, 2, cpermission)
|
||||
CommandCSSetTopicLock(const Anope::string &cname, const Anope::string &cpermission = "") : Command(cname, 2, 2, cpermission)
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms)
|
||||
CommandReturn Execute(User *u, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
ChannelInfo *ci = cs_findchan(params[0]);
|
||||
assert(ci);
|
||||
|
||||
if (params[1] == "ON")
|
||||
if (params[1].equals_ci("ON"))
|
||||
{
|
||||
ci->SetFlag(CI_TOPICLOCK);
|
||||
notice_lang(Config.s_ChanServ, u, CHAN_SET_TOPICLOCK_ON, ci->name.c_str());
|
||||
}
|
||||
else if (params[1] == "OFF")
|
||||
else if (params[1].equals_ci("OFF"))
|
||||
{
|
||||
ci->UnsetFlag(CI_TOPICLOCK);
|
||||
notice_lang(Config.s_ChanServ, u, CHAN_SET_TOPICLOCK_OFF, ci->name.c_str());
|
||||
@@ -41,13 +41,13 @@ class CommandCSSetTopicLock : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
bool OnHelp(User *u, const ci::string &)
|
||||
bool OnHelp(User *u, const Anope::string &)
|
||||
{
|
||||
notice_help(Config.s_ChanServ, u, CHAN_HELP_SET_TOPICLOCK, "SET");
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnSyntaxError(User *u, const ci::string &)
|
||||
void OnSyntaxError(User *u, const Anope::string &)
|
||||
{
|
||||
syntax_error(Config.s_ChanServ, u, "SET", CHAN_SET_TOPICLOCK_SYNTAX);;
|
||||
}
|
||||
@@ -61,17 +61,17 @@ class CommandCSSetTopicLock : public Command
|
||||
class CommandCSSASetTopicLock : public CommandCSSetTopicLock
|
||||
{
|
||||
public:
|
||||
CommandCSSASetTopicLock(const ci::string &cname) : CommandCSSetTopicLock(cname, "chanserv/saset/topiclock")
|
||||
CommandCSSASetTopicLock(const Anope::string &cname) : CommandCSSetTopicLock(cname, "chanserv/saset/topiclock")
|
||||
{
|
||||
}
|
||||
|
||||
bool OnHelp(User *u, const ci::string &)
|
||||
bool OnHelp(User *u, const Anope::string &)
|
||||
{
|
||||
notice_help(Config.s_ChanServ, u, CHAN_HELP_SET_TOPICLOCK, "SASET");
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnSyntaxError(User *u, const ci::string &)
|
||||
void OnSyntaxError(User *u, const Anope::string &)
|
||||
{
|
||||
syntax_error(Config.s_ChanServ, u, "SASET", CHAN_SASET_TOPICLOCK_SYNTAX);
|
||||
}
|
||||
@@ -80,7 +80,7 @@ class CommandCSSASetTopicLock : public CommandCSSetTopicLock
|
||||
class CSSetTopicLock : public Module
|
||||
{
|
||||
public:
|
||||
CSSetTopicLock(const std::string &modname, const std::string &creator) : Module(modname, creator)
|
||||
CSSetTopicLock(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
|
||||
{
|
||||
this->SetAuthor("Anope");
|
||||
this->SetType(CORE);
|
||||
|
||||
Reference in New Issue
Block a user