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 /src/protocol | |
| 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 'src/protocol')
| -rw-r--r-- | src/protocol/bahamut.c | 2 | ||||
| -rw-r--r-- | src/protocol/bahamut.h | 4 | ||||
| -rw-r--r-- | src/protocol/charybdis.c | 2 | ||||
| -rw-r--r-- | src/protocol/charybdis.h | 4 | ||||
| -rw-r--r-- | src/protocol/inspircd11.c | 2 | ||||
| -rwxr-xr-x | src/protocol/inspircd11.h | 2 | ||||
| -rw-r--r-- | src/protocol/ratbox.c | 2 | ||||
| -rw-r--r-- | src/protocol/ratbox.h | 2 | ||||
| -rw-r--r-- | src/protocol/unreal32.c | 2 | ||||
| -rw-r--r-- | src/protocol/unreal32.h | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 8297cb0ed..d269b9cd8 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -878,7 +878,7 @@ void BahamutIRCdProto::SendNoticeChanops(const char *source, const char *dest, c send_cmd(NULL, "NOTICE @%s :%s", dest, buf); } -void BahamutIRCdProto::SendKick(const char *source, const char *chan, const char *user, const char *buf) +void BahamutIRCdProto::SendKickInternal(const char *source, const char *chan, const char *user, const char *buf) { if (buf) send_cmd(source, "KICK %s %s :%s", chan, user, buf); else send_cmd(source, "KICK %s %s", chan, user); diff --git a/src/protocol/bahamut.h b/src/protocol/bahamut.h index 8cfabeccf..b99122c24 100644 --- a/src/protocol/bahamut.h +++ b/src/protocol/bahamut.h @@ -60,7 +60,8 @@ class BahamutIRCdProto : public IRCDProto { void SendSVSKillInternal(const char *, const char *, const char *); - void SendMode(const char *, const char *, const char *); + void SendModeInternal(const char *, const char *, const char *); + void SendKickInternal(const char *, const char *, const char *, const char *); public: void SendSVSNOOP(const char *, int); void SendAkillDel(const char *, const char *); @@ -69,7 +70,6 @@ class BahamutIRCdProto : public IRCDProto { void SendSVSMode(User *, int, const char **); void SendGuestNick(const char *, const char *, const char *, const char *, const char *); void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *); - void SendKick(const char *, const char *, const char *, const char *); void SendNoticeChanops(const char *, const char *, const char *); void SendBotOp(const char *, const char *); void SendJoin(const char *, const char *, time_t); diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 5a3f9847c..6f9034bfc 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -1011,7 +1011,7 @@ void charybdis_cmd_tmode(const char *source, const char *dest, const char *fmt, send_cmd(NULL, "MODE %s %s", dest, buf); } -void CharybdisProto::SendKick(const char *source, const char *chan, const char *user, const char *buf) +void CharybdisProto::SendKickInternal(const char *source, const char *chan, const char *user, const char *buf) { BotInfo *bi = findbot(source); User *u = finduser(user); diff --git a/src/protocol/charybdis.h b/src/protocol/charybdis.h index c59150410..30c7f769d 100644 --- a/src/protocol/charybdis.h +++ b/src/protocol/charybdis.h @@ -48,14 +48,14 @@ class CharybdisProto : public IRCDTS6Proto { void SendSVSKillInternal(const char *, const char *, const char *); - void SendMode(const char *, const char *, const char *); + void SendModeInternal(const char *, const char *, const char *); + void SendKickInternal(const char *, const char *, const char *, const char *); public: void SendAkillDel(const char *, const char *); void SendVhostDel(User *); 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 SendKick(const char *, const char *, const char *, const char *); void SendNoticeChanops(const char *, const char *, const char *); void SendBotOp(const char *, const char *); void SendQuit(const char *, const char *); diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 00615c088..3e7ef8f32 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -733,7 +733,7 @@ void InspIRCdProto::SendClientIntroduction(const char *nick, const char *user, c send_cmd(nick, "OPERTYPE Service"); } -void InspIRCdProto::SendKick(const char *source, const char *chan, const char *user, const char *buf) +void InspIRCdProto::SendKickInternal(const char *source, const char *chan, const char *user, const char *buf) { if (buf) send_cmd(source, "KICK %s %s :%s", chan, user, buf); else send_cmd(source, "KICK %s %s :%s", chan, user, user); diff --git a/src/protocol/inspircd11.h b/src/protocol/inspircd11.h index 176a027af..ad3d47fec 100755 --- a/src/protocol/inspircd11.h +++ b/src/protocol/inspircd11.h @@ -54,6 +54,7 @@ class InspIRCdProto : public IRCDProto { void SendSVSKillInternal(const char *, const char *, const char *); void SendModeInternal(const char *, const char *, const char *); + void SendKickInternal(const char *, const char *, const char *, const char *); public: void SendAkillDel(const char *, const char *); void SendTopic(BotInfo *, const char *, const char *, const char *, time_t); @@ -62,7 +63,6 @@ class InspIRCdProto : public IRCDProto { void SendSVSMode(User *, int, const char **); void SendGuestNick(const char *, const char *, const char *, const char *, const char *); void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *); - void SendKick(const char *, const char *, const char *, const char *); void SendNoticeChanops(const char *, const char *, const char *); void SendBotOp(const char *, const char *); void SendJoin(const char *, const char *, time_t); diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 3ddadc07d..c669e366f 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -941,7 +941,7 @@ void ratbox_cmd_tmode(const char *source, const char *dest, const char *fmt, ... send_cmd(NULL, "MODE %s %s", dest, buf); } -void RatboxProto::SendKick(const char *source, const char *chan, const char *user, const char *buf) +void RatboxProto::SendKickInternal(const char *source, const char *chan, const char *user, const char *buf) { Uid *ud = find_uid(source); User *u = finduser(user); diff --git a/src/protocol/ratbox.h b/src/protocol/ratbox.h index 7481eb120..cb4384fd2 100644 --- a/src/protocol/ratbox.h +++ b/src/protocol/ratbox.h @@ -48,12 +48,12 @@ class RatboxProto : public IRCDTS6Proto { void SendSVSKillInternal(const char *, const char *, const char *); void SendModeInternal(const char *, const char *, const char *); + void SendKickInternal(const char *, 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 *); void SendSVSMode(User *, int, const char **); void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *); - void SendKick(const char *, const char *, const char *, const char *); void SendNoticeChanops(const char *, const char *, const char *); void SendBotOp(const char *, const char *); void SendQuit(const char *, const char *); diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index abe62c665..960dcf8db 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -556,7 +556,7 @@ void UnrealIRCdProto::SendClientIntroduction(const char *nick, const char *user, SendSQLine(nick, "Reserved for services"); } -void UnrealIRCdProto::SendKick(const char *source, const char *chan, const char *user, const char *buf) +void UnrealIRCdProto::SendKickInternal(const char *source, const char *chan, const char *user, const char *buf) { if (buf) send_cmd(source, "%s %s %s :%s", send_token("KICK", "H"), chan, user, buf); else send_cmd(source, "%s %s %s", send_token("KICK", "H"), chan, user); diff --git a/src/protocol/unreal32.h b/src/protocol/unreal32.h index 14bd65931..137c1cdd1 100644 --- a/src/protocol/unreal32.h +++ b/src/protocol/unreal32.h @@ -83,6 +83,7 @@ class UnrealIRCdProto : public IRCDProto { void SendSVSKillInternal(const char *, const char *, const char *); void SendModeInternal(const char *, const char *, const char *); + void SendKickInternal(const char *, const char *, const char *, const char *); public: void SendSVSNOOP(const char *, int); void SendAkillDel(const char *, const char *); @@ -92,7 +93,6 @@ class UnrealIRCdProto : public IRCDProto { void SendSVSMode(User *, int, const char **); void SendGuestNick(const char *, const char *, const char *, const char *, const char *); void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *); - void SendKick(const char *, const char *, const char *, const char *); void SendNoticeChanops(const char *, const char *, const char *); void SendBotOp(const char *, const char *); void SendJoin(const char *, const char *, time_t); |
