From f3f1b97a1ab782a3419fe20ae06d3e3535a4ddae Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Thu, 2 Oct 2008 20:35:07 +0000 Subject: Replaced anope_SendPart() with direct call to SendPart() in IRCDProto class. Added SendPartInternal() function to IRCDProto class, now SendPart() is a stub to handle varargs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1346 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/charybdis.c | 2 +- src/protocol/charybdis.h | 2 +- src/protocol/ratbox.c | 2 +- src/protocol/ratbox.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/protocol') diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 89b79ee65..840e35521 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -813,7 +813,7 @@ void CharybdisProto::SendClientIntroduction(const char *nick, const char *user, SendSQLine(nick, "Reserved for services"); } -void CharybdisProto::SendPart(const char *nick, const char *chan, const char *buf) +void CharybdisProto::SendPartInternal(const char *nick, const char *chan, const char *buf) { User *u = finduser(nick); if (buf) send_cmd(UseTS6 ? u->uid : nick, "PART %s :%s", chan, buf); diff --git a/src/protocol/charybdis.h b/src/protocol/charybdis.h index 9098c7ef9..2a9332de7 100644 --- a/src/protocol/charybdis.h +++ b/src/protocol/charybdis.h @@ -52,6 +52,7 @@ class CharybdisProto : public IRCDTS6Proto { void SendKickInternal(const char *, const char *, const char *, const char *); void SendNoticeChanopsInternal(const char *, const char *, const char *); void SendQuitInternal(const char *, const char *); + void SendPartInternal(const char *, const char *, const char *); public: void SendAkillDel(const char *, const char *); void SendVhostDel(User *); @@ -63,7 +64,6 @@ class CharybdisProto : public IRCDTS6Proto { void SendJoin(const char *, const char *, time_t); void SendSQLineDel(const char *); void SendInvite(const char *, const char *, const char *); - void SendPart(const char *, const char *, const char *); void SendGlobops(const char *, const char *); void SendSQLine(const char *, const char *); void SendForceNickChange(const char *, const char *, time_t); diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 8145d26c8..b58d63688 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -750,7 +750,7 @@ void RatboxProto::SendClientIntroduction(const char *nick, const char *user, con SendSQLine(nick, "Reserved for services"); } -void RatboxProto::SendPart(const char *nick, const char *chan, const char *buf) +void RatboxProto::SendPartInternal(const char *nick, const char *chan, const char *buf) { Uid *ud = find_uid(nick); if (buf) send_cmd(UseTS6 ? ud->uid : nick, "PART %s :%s", chan, buf); diff --git a/src/protocol/ratbox.h b/src/protocol/ratbox.h index f4f99dcb4..2466c0a3d 100644 --- a/src/protocol/ratbox.h +++ b/src/protocol/ratbox.h @@ -51,6 +51,7 @@ class RatboxProto : public IRCDTS6Proto { void SendKickInternal(const char *, const char *, const char *, const char *); void SendNoticeChanopsInternal(const char *, const char *, const char *); void SendQuitInternal(const char *, const char *); + void SendPartInternal(const char *, 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 *); @@ -61,7 +62,6 @@ class RatboxProto : public IRCDTS6Proto { void SendJoin(const char *, const char *, time_t); void SendSQLineDel(const char *); void SendInvite(const char *, const char *, const char *); - void SendPart(const char *, const char *, const char *); void SendGlobops(const char *, const char *); void SendSQLine(const char *, const char *); void SendForceNickChange(const char *, const char *, time_t) { } // Ratbox doesn't have an SVSNICK command -- cgit