summaryrefslogtreecommitdiff
path: root/modules/commands/cs_modes.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-25 03:05:00 -0400
committerAdam <Adam@anope.org>2011-09-10 01:58:38 -0400
commit8c4417cad180f3c5448c5b7509b1bf2235e3077e (patch)
tree5bae0349730cae12f07e252d6d8b027bed74faf7 /modules/commands/cs_modes.cpp
parentd4db2b84f250b98ec3422f2be9951f567e6dc97e (diff)
Removed opnotice
Diffstat (limited to 'modules/commands/cs_modes.cpp')
-rw-r--r--modules/commands/cs_modes.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/commands/cs_modes.cpp b/modules/commands/cs_modes.cpp
index 1fca13acd..e2b2f2516 100644
--- a/modules/commands/cs_modes.cpp
+++ b/modules/commands/cs_modes.cpp
@@ -15,7 +15,7 @@
class CommandModeBase : public Command
{
- void do_mode(CommandSource &source, Command *com, ChannelMode *cm, const Anope::string &chan, const Anope::string &nick, bool set, ChannelAccess level, ChannelAccess levelself, ChannelInfoFlag notice)
+ void do_mode(CommandSource &source, Command *com, ChannelMode *cm, const Anope::string &chan, const Anope::string &nick, bool set, ChannelAccess level, ChannelAccess levelself)
{
User *u = source.u;
User *u2 = finduser(nick);
@@ -48,8 +48,6 @@ class CommandModeBase : public Command
c->RemoveMode(NULL, cm, u2->nick);
Log(LOG_COMMAND, u, com, ci) << "for " << u2->nick;
- if (notice && ci->HasFlag(notice))
- ircdproto->SendMessage(ci->WhoSends(), c->name, "%s command used for %s by %s", com->name.c_str(), u2->nick.c_str(), u->nick.c_str());
}
}
@@ -97,7 +95,7 @@ class CommandCSOp : public CommandModeBase
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_OP);
- return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", true, CA_OPDEOP, CA_OPDEOPME, CI_OPNOTICE);
+ return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", true, CA_OPDEOP, CA_OPDEOPME);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
@@ -126,7 +124,7 @@ class CommandCSDeOp : public CommandModeBase
{
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_OP);
- return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", false, CA_OPDEOP, CA_OPDEOPME, CI_OPNOTICE);
+ return do_util(source, this, cm, !params.empty() ? params[0] : "", params.size() > 1 ? params[1] : "", false, CA_OPDEOP, CA_OPDEOPME);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand)