summaryrefslogtreecommitdiff
path: root/src/ircd.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/ircd.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/ircd.c')
-rw-r--r--src/ircd.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/ircd.c b/src/ircd.c
index 14bdd79e2..2b890ca97 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -50,7 +50,6 @@ void initIrcdProto()
ircdproto.ircd_cmd_372_error = NULL;
ircdproto.ircd_cmd_375 = NULL;
ircdproto.ircd_cmd_376 = NULL;
- ircdproto.ircd_cmd_notice_ops = NULL;
ircdproto.ircd_cmd_notice = NULL;
ircdproto.ircd_cmd_notice2 = NULL;
ircdproto.ircd_cmd_privmsg = NULL;
@@ -226,15 +225,14 @@ void anope_cmd_kick(const char *source, const char *chan, const char *user, cons
void anope_cmd_notice_ops(const char *source, const char *dest, const char *fmt, ...)
{
- va_list args;
- char buf[BUFSIZE];
- *buf = '\0';
- if (fmt) {
- va_start(args, fmt);
- vsnprintf(buf, BUFSIZE - 1, fmt, args);
- va_end(args);
- }
- ircdproto.ircd_cmd_notice_ops(source, dest, buf);
+ va_list args;
+ char buf[BUFSIZE] = "";
+ if (fmt) {
+ va_start(args, fmt);
+ vsnprintf(buf, BUFSIZE - 1, fmt, args);
+ va_end(args);
+ }
+ ircdprotonew->cmd_notice_ops(source, dest, buf);
}
void anope_cmd_notice(const char *source, const char *dest, const char *fmt, ...)
@@ -695,12 +693,6 @@ void pmodule_cmd_376(void (*func) (const char *source))
ircdproto.ircd_cmd_376 = func;
}
-void
-pmodule_cmd_notice_ops(void (*func) (const char *source, const char *dest, const char *buf))
-{
- ircdproto.ircd_cmd_notice_ops = func;
-}
-
void pmodule_cmd_notice(void (*func) (const char *source, const char *dest, const char *buf))
{
ircdproto.ircd_cmd_notice = func;