summaryrefslogtreecommitdiff
path: root/src/protocol/charybdis.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commitbc9e96d6eb004eb86ff1b0709fe2050bd8df3b69 (patch)
tree582ebd30946ad66eff857da27ad01a2011d101bc /src/protocol/charybdis.c
parentac05ac3857b8c3ccd8a6ea2444c738c954668ee2 (diff)
Added cmd_notice_ops() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1221 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/charybdis.c')
-rw-r--r--src/protocol/charybdis.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c
index 65ca6fd76..5b52fd334 100644
--- a/src/protocol/charybdis.c
+++ b/src/protocol/charybdis.c
@@ -1362,16 +1362,11 @@ void CharybdisProto::cmd_kick(const char *source, const char *chan, const char *
else send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "KICK %s %s", chan, UseTS6 ? (u ? u->uid : user) : user);
}
-void charybdis_cmd_notice_ops(const char *source, const char *dest, const char *buf)
+void CharybdisProto::cmd_notice_ops(const char *source, const char *dest, const char *buf)
{
- Uid *ud;
- ud = find_uid(source);
-
- if (!buf) {
- return;
- }
-
- send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "NOTICE @%s :%s", dest, buf);
+ if (!buf) return;
+ Uid *ud = find_uid(source);
+ send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "NOTICE @%s :%s", dest, buf);
}
void charybdis_cmd_bot_chan_mode(const char *nick, const char *chan)
@@ -1780,7 +1775,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_372_error(charybdis_cmd_372_error);
pmodule_cmd_375(charybdis_cmd_375);
pmodule_cmd_376(charybdis_cmd_376);
- pmodule_cmd_notice_ops(charybdis_cmd_notice_ops);
pmodule_cmd_notice(charybdis_cmd_notice);
pmodule_cmd_notice2(charybdis_cmd_notice2);
pmodule_cmd_privmsg(charybdis_cmd_privmsg);