mirror of
https://github.com/anope/anope.git
synced 2026-07-10 13:03:12 +02:00
Replaced anope_SendSVSKill() with direct call to SendSVSKill() in IRCDProto class.
Also added SendSVSKillInternal() function to IRCDProto class, now SendSVSKill() is a stub to handle varargs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1326 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -693,7 +693,7 @@ void BahamutIRCdProto::SendAkill(const char *user, const char *host, const char
|
||||
/*
|
||||
Note: if the stamp is null 0, the below usage is correct of Bahamut
|
||||
*/
|
||||
void BahamutIRCdProto::SendSVSKill(const char *source, const char *user, const char *buf)
|
||||
void BahamutIRCdProto::SendSVSKillInternal(const char *source, const char *user, const char *buf)
|
||||
{
|
||||
if (!source || !user || !buf) return;
|
||||
send_cmd(source, "SVSKILL %s :%s", user, buf);
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
class BahamutIRCdProto : public IRCDProto {
|
||||
void SendSVSKillInternal(const char *, const char *, const char *);
|
||||
public:
|
||||
void SendSVSNOOP(const char *, int);
|
||||
void SendAkillDel(const char *, const char *);
|
||||
void SendTopic(BotInfo *, const char *, const char *, const char *, time_t);
|
||||
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
|
||||
void SendSVSKill(const char *, const char *, const char *);
|
||||
void SendSVSMode(User *, int, const char **);
|
||||
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
|
||||
void SendMode(const char *, const char *, const char *);
|
||||
|
||||
@@ -715,7 +715,7 @@ void CharybdisProto::SendAkill(const char *user, const char *host, const char *w
|
||||
send_cmd(UseTS6 ? (bi ? bi->uid.c_str() : s_OperServ) : s_OperServ, "KLINE * %ld %s %s :%s", static_cast<long>(expires - time(NULL)), user, host, reason);
|
||||
}
|
||||
|
||||
void CharybdisProto::SendSVSKill(const char *source, const char *user, const char *buf)
|
||||
void CharybdisProto::SendSVSKillInternal(const char *source, const char *user, const char *buf)
|
||||
{
|
||||
if (!source || !user || !buf) return;
|
||||
BotInfo *bi = findbot(source);
|
||||
|
||||
@@ -47,11 +47,11 @@
|
||||
|
||||
|
||||
class CharybdisProto : public IRCDTS6Proto {
|
||||
void SendSVSKillInternal(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 SendSVSKill(const char *, const char *, const char *);
|
||||
void SendSVSMode(User *, int, const char **);
|
||||
void SendMode(const char *, const char *, const char *);
|
||||
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
|
||||
|
||||
@@ -541,7 +541,7 @@ void InspIRCdProto::SendAkill(const char *user, const char *host, const char *wh
|
||||
send_cmd(ServerName, "ADDLINE G %s@%s %s %ld %ld :%s", user, host, who, static_cast<long>(when), static_cast<long>(timeleft), reason);
|
||||
}
|
||||
|
||||
void InspIRCdProto::SendSVSKill(const char *source, const char *user, const char *buf)
|
||||
void InspIRCdProto::SendSVSKillInternal(const char *source, const char *user, const char *buf)
|
||||
{
|
||||
if (!buf || !source || !user) return;
|
||||
send_cmd(source, "KILL %s :%s", user, buf);
|
||||
|
||||
@@ -52,12 +52,12 @@
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
class InspIRCdProto : public IRCDProto {
|
||||
void SendSVSKillInternal(const char *, const char *, const char *);
|
||||
public:
|
||||
void SendAkillDel(const char *, const char *);
|
||||
void SendTopic(BotInfo *, const char *, const char *, const char *, time_t);
|
||||
void SendVhostDel(User *);
|
||||
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
|
||||
void SendSVSKill(const char *, const char *, const char *);
|
||||
void SendSVSMode(User *, int, const char **);
|
||||
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
|
||||
void SendMode(const char *, const char *, const char *);
|
||||
|
||||
@@ -654,7 +654,7 @@ void RatboxProto::SendAkill(const char *user, const char *host, const char *who,
|
||||
send_cmd(UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ, "KLINE * %ld %s %s :%s", static_cast<long>(expires - time(NULL)), user, host, reason);
|
||||
}
|
||||
|
||||
void RatboxProto::SendSVSKill(const char *source, const char *user, const char *buf)
|
||||
void RatboxProto::SendSVSKillInternal(const char *source, const char *user, const char *buf)
|
||||
{
|
||||
if (!source || !user || !buf) return;
|
||||
Uid *ud = find_uid(source), *ud2 = find_uid(user);
|
||||
|
||||
@@ -46,10 +46,10 @@
|
||||
|
||||
|
||||
class RatboxProto : public IRCDTS6Proto {
|
||||
void SendSVSKillInternal(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 SendSVSKill(const char *, const char *, const char *);
|
||||
void SendSVSMode(User *, int, const char **);
|
||||
void SendMode(const char *, const char *, const char *);
|
||||
void SendClientIntroduction(const char *, const char *, const char *, const char *, const char *);
|
||||
|
||||
@@ -514,7 +514,7 @@ void UnrealIRCdProto::SendAkill(const char *user, const char *host, const char *
|
||||
** parv[1] = client
|
||||
** parv[2] = kill message
|
||||
*/
|
||||
void UnrealIRCdProto::SendSVSKill(const char *source, const char *user, const char *buf)
|
||||
void UnrealIRCdProto::SendSVSKillInternal(const char *source, const char *user, const char *buf)
|
||||
{
|
||||
if (!source || !user || !buf) return;
|
||||
send_cmd(source, "%s %s :%s", send_token("SVSKILL", "h"), user, buf);
|
||||
|
||||
@@ -81,13 +81,13 @@
|
||||
#define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
|
||||
|
||||
class UnrealIRCdProto : public IRCDProto {
|
||||
void SendSVSKillInternal(const char *, const char *, const char *);
|
||||
public:
|
||||
void SendSVSNOOP(const char *, int);
|
||||
void SendAkillDel(const char *, const char *);
|
||||
void SendTopic(BotInfo *, const char *, const char *, const char *, time_t);
|
||||
void SendVhostDel(User *);
|
||||
void SendAkill(const char *, const char *, const char *, time_t, time_t, const char *);
|
||||
void SendSVSKill(const char *, const char *, const char *);
|
||||
void SendSVSMode(User *, int, const char **);
|
||||
void SendGuestNick(const char *, const char *, const char *, const char *, const char *);
|
||||
void SendMode(const char *, const char *, const char *);
|
||||
|
||||
Reference in New Issue
Block a user