diff options
| author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 18:44:47 +0000 |
|---|---|---|
| committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 18:44:47 +0000 |
| commit | c48429eb7515583de22bc8134493b3bfad2df0c4 (patch) | |
| tree | 5cd81bb541214fd471872d3c39338c0a372fd3ba /include | |
| parent | 765f561952d1a77a445128d7cbdc0da0a16c1706 (diff) | |
Replaced anope_SendNoticeChanops() with direct call to SendNoticeChanops() in IRCDProto class.
Also added SendNoticeChanopsInternal() function to IRCDProto class, now SendNoticeChanops() is a stub to handle varargs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1332 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/extern.h | 1 | ||||
| -rw-r--r-- | include/services.h | 13 |
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) |
