summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/extern.h1
-rw-r--r--include/services.h13
2 files changed, 12 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h
index c2231ff01..a6416bf80 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -1130,7 +1130,6 @@ E void anope_SendBotOp(const char *nick, const char *chan); /* MODE BotS
E void anope_cmd_netinfo(int ac, const char **av); /* NETINFO */
E void anope_SendChangeBotNick(const char *oldnick, const char *newnick); /* NICK */
E void anope_cmd_message(const char *source, const char *dest, const char *fmt, ...); /* NOTICE */
-E void anope_SendNoticeChanops(const char *source, const char *dest, const char *fmt, ...); /* NOTICE */
E void anope_cmd_notice(const char *source, const char *dest, const char *msg); /* NOTICE */
E void anope_SendGlobalNotice(const char *source, const char *dest, const char *msg); /* NOTICE */
E void anope_SendPart(const char *nick, const char *chan, const char *fmt, ...); /* PART */
diff --git a/include/services.h b/include/services.h
index ce82b97dd..58c0570f8 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1233,6 +1233,7 @@ class IRCDProto {
virtual void SendSVSKillInternal(const char *, const char *, const char *) = 0;
virtual void SendModeInternal(const char *, const char *, const char *) = 0;
virtual void SendKickInternal(const char *, const char *, const char *, const char *) = 0;
+ virtual void SendNoticeChanopsInternal(const char *, const char *, const char *) = 0;
public:
virtual void SendSVSNOOP(const char *, int) { }
virtual void SendAkillDel(const char *, const char *) = 0;
@@ -1275,7 +1276,17 @@ class IRCDProto {
}
SendKickInternal(source, chan, user, buf);
}
- virtual void SendNoticeChanops(const char *, const char *, const char *) = 0;
+ virtual void SendNoticeChanops(const char *source, const char *dest, const char *fmt, ...)
+ {
+ va_list args;
+ char buf[BUFSIZE] = "";
+ if (fmt) {
+ va_start(args, fmt);
+ vsnprintf(buf, BUFSIZE - 1, fmt, args);
+ va_end(args);
+ }
+ SendNoticeChanopsInternal(source, dest, buf);
+ }
virtual void SendMessage(BotInfo *bi, const char *dest, const char *buf)
{
if (NSDefFlags & NI_MSG)