diff options
| author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 18:37:32 +0000 |
|---|---|---|
| committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 18:37:32 +0000 |
| commit | 765f561952d1a77a445128d7cbdc0da0a16c1706 (patch) | |
| tree | b8a8995e95e5450d5f21fc931673478fb57054eb /include/services.h | |
| parent | 984779a0f3a9e563844f7a4e2b695d1aa2b10c35 (diff) | |
Replaced anope_SendKick() with direct call to SendKick() in IRCDProto class.
Also added SendKickInternal() function to IRCDProto class, now SendKick() is a stub to handle varargs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1331 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
| -rw-r--r-- | include/services.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/services.h b/include/services.h index ca04f68b2..ce82b97dd 100644 --- a/include/services.h +++ b/include/services.h @@ -1232,6 +1232,7 @@ class IRCDProto; 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; public: virtual void SendSVSNOOP(const char *, int) { } virtual void SendAkillDel(const char *, const char *) = 0; @@ -1263,7 +1264,17 @@ class IRCDProto { SendModeInternal(source, dest, buf); } virtual void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *) = 0; - virtual void SendKick(const char *, const char *, const char *, const char *) = 0; + virtual void SendKick(const char *source, const char *chan, const char *user, const char *fmt, ...) + { + va_list args; + char buf[BUFSIZE] = ""; + if (fmt) { + va_start(args, fmt); + vsnprintf(buf, BUFSIZE - 1, fmt, args); + va_end(args); + } + SendKickInternal(source, chan, user, buf); + } virtual void SendNoticeChanops(const char *, const char *, const char *) = 0; virtual void SendMessage(BotInfo *bi, const char *dest, const char *buf) { |
