diff options
| author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 19:25:27 +0000 |
|---|---|---|
| committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 19:25:27 +0000 |
| commit | 50db0bb6807382c78f67a77670ecccf8038207a6 (patch) | |
| tree | cb25b194d8b335919dce7655f2f2f1c2a0e71483 /src/protocol | |
| parent | 877791d8b63ee88f4edf9bcd2261a6bbafcde8af (diff) | |
Replaced anope_SendQuit() with direct call to SendQuit() in IRCDProto class.
Added SendQuitInternal() to IRCDProto class, now SendQuit() is a stub to handle varargs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1341 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/charybdis.c | 2 | ||||
| -rw-r--r-- | src/protocol/charybdis.h | 2 | ||||
| -rw-r--r-- | src/protocol/ratbox.c | 2 | ||||
| -rw-r--r-- | src/protocol/ratbox.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index c36e18a25..89b79ee65 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -1036,7 +1036,7 @@ void CharybdisProto::SendBotOp(const char *nick, const char *chan) } /* QUIT */ -void CharybdisProto::SendQuit(const char *source, const char *buf) +void CharybdisProto::SendQuitInternal(const char *source, const char *buf) { BotInfo *bi = findbot(source); if (buf) send_cmd(UseTS6 ? (bi ? bi->uid.c_str() : source) : source, "QUIT :%s", buf); diff --git a/src/protocol/charybdis.h b/src/protocol/charybdis.h index ac41d22a2..9098c7ef9 100644 --- a/src/protocol/charybdis.h +++ b/src/protocol/charybdis.h @@ -51,6 +51,7 @@ class CharybdisProto : public IRCDTS6Proto { void SendModeInternal(const char *, const char *, const char *); void SendKickInternal(const char *, const char *, const char *, const char *); void SendNoticeChanopsInternal(const char *, const char *, const char *); + void SendQuitInternal(const char *, const char *); public: void SendAkillDel(const char *, const char *); void SendVhostDel(User *); @@ -58,7 +59,6 @@ class CharybdisProto : public IRCDTS6Proto { void SendSVSMode(User *, int, const char **); void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *); void SendBotOp(const char *, const char *); - void SendQuit(const char *, const char *); void SendPong(const char *, const char *); void SendJoin(const char *, const char *, time_t); void SendSQLineDel(const char *); diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 717c71f92..8145d26c8 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -965,7 +965,7 @@ void RatboxProto::SendBotOp(const char *nick, const char *chan) } /* QUIT */ -void RatboxProto::SendQuit(const char *source, const char *buf) +void RatboxProto::SendQuitInternal(const char *source, const char *buf) { Uid *ud = find_uid(source); if (buf) send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "QUIT :%s", buf); diff --git a/src/protocol/ratbox.h b/src/protocol/ratbox.h index 3a8a96e1e..f4f99dcb4 100644 --- a/src/protocol/ratbox.h +++ b/src/protocol/ratbox.h @@ -50,13 +50,13 @@ class RatboxProto : public IRCDTS6Proto { void SendModeInternal(const char *, const char *, const char *); void SendKickInternal(const char *, const char *, const char *, const char *); void SendNoticeChanopsInternal(const char *, const char *, const char *); + void SendQuitInternal(const char *, const char *); public: void SendAkillDel(const char *, const char *); void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *); void SendSVSMode(User *, int, const char **); void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *); void SendBotOp(const char *, const char *); - void SendQuit(const char *, const char *); void SendPong(const char *, const char *); void SendJoin(const char *, const char *, time_t); void SendSQLineDel(const char *); |
