summaryrefslogtreecommitdiff
path: root/modules/core/cs_clear.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_clear.cpp
parent05e6815d912f0418f6da25a2106dd718796f02fa (diff)
Changed the language system to use gettext
Diffstat (limited to 'modules/core/cs_clear.cpp')
-rw-r--r--modules/core/cs_clear.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/core/cs_clear.cpp b/modules/core/cs_clear.cpp
index 1fa61fc56..e9763dbdf 100644
--- a/modules/core/cs_clear.cpp
+++ b/modules/core/cs_clear.cpp
@@ -39,33 +39,33 @@ class CommandCSClear : public Command
Log(LOG_COMMAND, u, this, ci) << what;
if (!c)
- notice_lang(Config->s_ChanServ, u, CHAN_X_NOT_IN_USE, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_X_NOT_IN_USE, chan.c_str());
else if (!check_access(u, ci, CA_CLEAR))
- notice_lang(Config->s_ChanServ, u, ACCESS_DENIED);
+ u->SendMessage(ChanServ, ACCESS_DENIED);
else if (what.equals_ci("bans"))
{
c->ClearBans();
- notice_lang(Config->s_ChanServ, u, CHAN_CLEARED_BANS, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_CLEARED_BANS, chan.c_str());
}
else if (ModeManager::FindChannelModeByName(CMODE_EXCEPT) && what.equals_ci("excepts"))
{
c->ClearExcepts();
- notice_lang(Config->s_ChanServ, u, CHAN_CLEARED_EXCEPTS, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_CLEARED_EXCEPTS, chan.c_str());
}
else if (ModeManager::FindChannelModeByName(CMODE_INVITE) && what.equals_ci("invites"))
{
c->ClearInvites();
- notice_lang(Config->s_ChanServ, u, CHAN_CLEARED_INVITES, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_CLEARED_INVITES, chan.c_str());
}
else if (what.equals_ci("modes"))
{
c->ClearModes();
check_modes(c);
- notice_lang(Config->s_ChanServ, u, CHAN_CLEARED_MODES, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_CLEARED_MODES, chan.c_str());
}
else if (what.equals_ci("ops"))
{
@@ -105,7 +105,7 @@ class CommandCSClear : public Command
}
}
- notice_lang(Config->s_ChanServ, u, CHAN_CLEARED_OPS, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_CLEARED_OPS, chan.c_str());
}
else if ((halfop && what.equals_ci("hops")) || (voice && what.equals_ci("voices")))
{
@@ -139,28 +139,28 @@ class CommandCSClear : public Command
c->Kick(NULL, uc->user, "%s", buf.c_str());
}
- notice_lang(Config->s_ChanServ, u, CHAN_CLEARED_USERS, chan.c_str());
+ u->SendMessage(ChanServ, CHAN_CLEARED_USERS, chan.c_str());
}
else
- syntax_error(Config->s_ChanServ, u, "CLEAR", CHAN_CLEAR_SYNTAX);
+ SyntaxError(ChanServ, u, "CLEAR", CHAN_CLEAR_SYNTAX);
return MOD_CONT;
}
bool OnHelp(User *u, const Anope::string &subcommand)
{
- notice_help(Config->s_ChanServ, u, CHAN_HELP_CLEAR);
+ u->SendMessage(ChanServ, CHAN_HELP_CLEAR);
return true;
}
void OnSyntaxError(User *u, const Anope::string &subcommand)
{
- syntax_error(Config->s_ChanServ, u, "CLEAR", CHAN_CLEAR_SYNTAX);
+ SyntaxError(ChanServ, u, "CLEAR", CHAN_CLEAR_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config->s_ChanServ, u, CHAN_HELP_CMD_CLEAR);
+ u->SendMessage(ChanServ, CHAN_HELP_CMD_CLEAR);
}
};