summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_restricted.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-26 02:33:01 -0400
committerAdam <Adam@anope.org>2010-09-26 02:33:01 -0400
commitd646d455e2655be59f6d5bcc56710ac70548ca37 (patch)
treed236b9d4991d62538a0318f213416396734e72e0 /modules/core/cs_set_restricted.cpp
parent05e6815d912f0418f6da25a2106dd718796f02fa (diff)
Changed the language system to use gettext
Diffstat (limited to 'modules/core/cs_set_restricted.cpp')
-rw-r--r--modules/core/cs_set_restricted.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/core/cs_set_restricted.cpp b/modules/core/cs_set_restricted.cpp
index bd376cac1..bc8aedf41 100644
--- a/modules/core/cs_set_restricted.cpp
+++ b/modules/core/cs_set_restricted.cpp
@@ -30,14 +30,14 @@ class CommandCSSetRestricted : public Command
ci->SetFlag(CI_RESTRICTED);
if (ci->levels[CA_NOJOIN] < 0)
ci->levels[CA_NOJOIN] = 0;
- notice_lang(Config->s_ChanServ, u, CHAN_SET_RESTRICTED_ON, ci->name.c_str());
+ u->SendMessage(ChanServ, CHAN_SET_RESTRICTED_ON, ci->name.c_str());
}
else if (params[1].equals_ci("OFF"))
{
ci->UnsetFlag(CI_RESTRICTED);
if (ci->levels[CA_NOJOIN] >= 0)
ci->levels[CA_NOJOIN] = -2;
- notice_lang(Config->s_ChanServ, u, CHAN_SET_RESTRICTED_OFF, ci->name.c_str());
+ u->SendMessage(ChanServ, CHAN_SET_RESTRICTED_OFF, ci->name.c_str());
}
else
this->OnSyntaxError(u, "RESTRICTED");
@@ -47,18 +47,18 @@ class CommandCSSetRestricted : public Command
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_RESTRICTED, "SET");
+ u->SendMessage(ChanServ, CHAN_HELP_SET_RESTRICTED, "SET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
- syntax_error(Config->s_ChanServ, u, "SET RESTRICTED", CHAN_SET_RESTRICTED_SYNTAX);
+ SyntaxError(ChanServ, u, "SET RESTRICTED", CHAN_SET_RESTRICTED_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config->s_ChanServ, u, CHAN_HELP_CMD_SET_RESTRICTED);
+ u->SendMessage(ChanServ, CHAN_HELP_CMD_SET_RESTRICTED);
}
};
@@ -71,13 +71,13 @@ class CommandCSSASetRestricted : public CommandCSSetRestricted
bool OnHelp(User *u, const Anope::string &)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_SET_RESTRICTED, "SASET");
+ u->SendMessage(ChanServ, CHAN_HELP_SET_RESTRICTED, "SASET");
return true;
}
void OnSyntaxError(User *u, const Anope::string &)
{
- syntax_error(Config->s_ChanServ, u, "SASET RESTRICTED", CHAN_SASET_RESTRICTED_SYNTAX);
+ SyntaxError(ChanServ, u, "SASET RESTRICTED", CHAN_SASET_RESTRICTED_SYNTAX);
}
};