diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2011-01-04 07:14:50 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2011-01-04 07:14:50 +0100 |
commit | 03ba592c4874f41844d871e69e5ebcd65ed1c0c8 (patch) | |
tree | 28706c6d0512162873a7be8a2a8092a0b4a6a0fb | |
parent | 57a06f72e231d8848393c8ba3bb4034a332bac4f (diff) |
removed SendSVSMode(), we dont use it
-rw-r--r-- | include/services.h | 2 | ||||
-rw-r--r-- | modules/protocol/bahamut.cpp | 21 | ||||
-rw-r--r-- | modules/protocol/inspircd-ts6.h | 5 | ||||
-rw-r--r-- | modules/protocol/inspircd11.cpp | 5 | ||||
-rw-r--r-- | modules/protocol/plexus.cpp | 5 | ||||
-rw-r--r-- | modules/protocol/ratbox.cpp | 5 | ||||
-rw-r--r-- | modules/protocol/unreal32.cpp | 27 |
7 files changed, 0 insertions, 70 deletions
diff --git a/include/services.h b/include/services.h index 33c35ab51..2b7873308 100644 --- a/include/services.h +++ b/include/services.h @@ -931,7 +931,6 @@ class CoreExport IRCDProto virtual void SendAkill(const XLine *) = 0; virtual void SendAkillDel(const XLine *) = 0; virtual void SendSVSKill(const BotInfo *source, const User *user, const char *fmt, ...); - virtual void SendSVSMode(const User *, int, const char **) = 0; virtual void SendMode(const BotInfo *bi, const Channel *dest, const char *fmt, ...); virtual void SendMode(const BotInfo *bi, const User *u, const char *fmt, ...); virtual void SendClientIntroduction(const User *u, const Anope::string &) = 0; @@ -966,7 +965,6 @@ class CoreExport IRCDProto virtual void SendSZLineDel(const XLine *) { } virtual void SendSZLine(const XLine *) { } virtual void SendSGLine(const XLine *) { } - virtual void SendSVSModeChan(const Channel *, const Anope::string &, const Anope::string &) { } virtual void SendUnregisteredNick(const User *) { } virtual void SendCTCP(const BotInfo *bi, const Anope::string &dest, const char *fmt, ...); virtual void SendSVSJoin(const Anope::string &, const Anope::string &, const Anope::string &, const Anope::string &) { } diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index 21d351f0c..19227958b 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -102,15 +102,6 @@ class BahamutIRCdProto : public IRCDProto send_cmd(Config->ServerName, "SVSHOLD %s 0", nick.c_str()); } - /* SVSMODE channel modes */ - void SendSVSModeChan(const Channel *c, const Anope::string &mode, const Anope::string &nick) - { - if (!nick.empty()) - send_cmd(Config->ServerName, "SVSMODE %s %s %s", c->name.c_str(), mode.c_str(), nick.c_str()); - else - send_cmd(Config->ServerName, "SVSMODE %s %s", c->name.c_str(), mode.c_str()); - } - /* SQLINE */ void SendSQLine(const XLine *x) { @@ -207,18 +198,6 @@ class BahamutIRCdProto : public IRCDProto send_cmd(source ? source->nick : "", "SVSKILL %s :%s", user->nick.c_str(), buf.c_str()); } - /* SVSMODE */ - /* parv[0] - sender - * parv[1] - nick - * parv[2] - TS (or mode, depending on svs version) - * parv[3] - mode (or services id if old svs version) - * parv[4] - optional arguement (services id) - */ - void SendSVSMode(const User *u, int ac, const char **av) - { - this->SendModeInternal(NULL, u, merge_args(ac, av)); - } - void SendBOB() { send_cmd("", "BURST"); diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h index 18f046d76..c059bd895 100644 --- a/modules/protocol/inspircd-ts6.h +++ b/modules/protocol/inspircd-ts6.h @@ -65,11 +65,6 @@ class InspIRCdTS6Proto : public IRCDProto send_cmd(source ? source->GetUID() : Config->Numeric, "KILL %s :%s", user->GetUID().c_str(), buf.c_str()); } - void SendSVSMode(const User *u, int ac, const char **av) - { - this->SendModeInternal(NULL, u, merge_args(ac, av)); - } - void SendNumericInternal(const Anope::string &source, int numeric, const Anope::string &dest, const Anope::string &buf) { send_cmd(Config->Numeric, "PUSH %s ::%s %03d %s %s", dest.c_str(), source.c_str(), numeric, dest.c_str(), buf.c_str()); diff --git a/modules/protocol/inspircd11.cpp b/modules/protocol/inspircd11.cpp index e642d8f50..211fe7536 100644 --- a/modules/protocol/inspircd11.cpp +++ b/modules/protocol/inspircd11.cpp @@ -113,11 +113,6 @@ class InspIRCdProto : public IRCDProto send_cmd(source ? source->nick : Config->ServerName, "KILL %s :%s", user->nick.c_str(), buf.c_str()); } - void SendSVSMode(const User *u, int ac, const char **av) - { - this->SendModeInternal(NULL, u, merge_args(ac, av)); - } - void SendNumericInternal(const Anope::string &source, int numeric, const Anope::string &dest, const Anope::string &buf) { send_cmd(source, "PUSH %s ::%s %03d %s %s", dest.c_str(), source.c_str(), numeric, dest.c_str(), buf.c_str()); diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index f18dac52b..a48b83adf 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -144,11 +144,6 @@ class PlexusProto : public IRCDProto send_cmd(source ? source->GetUID() : Config->Numeric, "KILL %s :%s", user->GetUID().c_str(), buf.c_str()); } - void SendSVSMode(const User *u, int ac, const char **av) - { - this->SendModeInternal(NULL, u, merge_args(ac, av)); - } - void SendServer(const Server *server) { if (server == Me) diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index 43debc78d..28b23b1da 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -147,11 +147,6 @@ class RatboxProto : public IRCDProto send_cmd(source ? source->GetUID() : Config->Numeric, "KILL %s :%s", user->GetUID().c_str(), buf.c_str()); } - void SendSVSMode(const User *u, int ac, const char **av) - { - this->SendModeInternal(NULL, u, merge_args(ac, av)); - } - /* SERVER name hop descript */ void SendServer(const Server *server) { diff --git a/modules/protocol/unreal32.cpp b/modules/protocol/unreal32.cpp index cc4fc23df..4ec41d210 100644 --- a/modules/protocol/unreal32.cpp +++ b/modules/protocol/unreal32.cpp @@ -127,23 +127,6 @@ class UnrealIRCdProto : public IRCDProto send_cmd(source ? source->nick : Config->ServerName, "h %s :%s", user->nick.c_str(), buf.c_str()); } - /* - * m_svsmode() added by taz - * parv[0] - sender - * parv[1] - username to change mode for - * parv[2] - modes to change - * parv[3] - Service Stamp (if mode == d) - */ - void SendSVSMode(const User *u, int ac, const char **av) - { - if (ac >= 1) - { - if (!u || !av[0]) - return; - this->SendModeInternal(NULL, u, merge_args(ac, av)); - } - } - void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf) { if (buf.empty()) @@ -300,16 +283,6 @@ class UnrealIRCdProto : public IRCDProto send_cmd("", "BR + %s :%s", edited_reason.c_str(), x->Mask.c_str()); } - /* SVSMODE channel modes */ - - void SendSVSModeChan(const Channel *c, const Anope::string &mode, const Anope::string &nick) - { - if (!nick.empty()) - send_cmd(Config->ServerName, "n %s %s %s", c->name.c_str(), mode.c_str(), nick.c_str()); - else - send_cmd(Config->ServerName, "n %s %s", c->name.c_str(), mode.c_str()); - } - /* svsjoin parv[0] - sender parv[1] - nick to make join |