diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
commit | bb898d2454dcbeb55518f4d6433387f9b499fd2e (patch) | |
tree | 7b637c22f054f133103f84bdaffd50cc340b650a /src | |
parent | f3e386b625ac025e76e3bbd339684f007788070c (diff) |
Added cmd_svspart() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1265 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/ircd.c | 9 | ||||
-rw-r--r-- | src/protocol/bahamut.c | 6 | ||||
-rw-r--r-- | src/protocol/charybdis.c | 6 | ||||
-rw-r--r-- | src/protocol/inspircd11.c | 5 | ||||
-rwxr-xr-x | src/protocol/inspircd11.h | 1 | ||||
-rw-r--r-- | src/protocol/ratbox.c | 6 | ||||
-rw-r--r-- | src/protocol/unreal32.c | 5 | ||||
-rw-r--r-- | src/protocol/unreal32.h | 1 |
8 files changed, 7 insertions, 32 deletions
diff --git a/src/ircd.c b/src/ircd.c index cceb57e14..464613369 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -63,7 +63,6 @@ void initIrcdProto() ircdproto.ircd_cmd_242 = NULL; ircdproto.ircd_cmd_243 = NULL; ircdproto.ircd_cmd_211 = NULL; - ircdproto.ircd_cmd_svspart = NULL; ircdproto.ircd_cmd_swhois = NULL; ircdproto.ircd_cmd_eob = NULL; ircdproto.ircd_flood_mode_check = NULL; @@ -548,7 +547,7 @@ void anope_cmd_svsjoin(const char *source, const char *nick, const char *chan, c void anope_cmd_svspart(const char *source, const char *nick, const char *chan) { - ircdproto.ircd_cmd_svspart(source, nick, chan); + ircdprotonew->cmd_svspart(source, nick, chan); } void anope_cmd_swhois(const char *source, const char *who, const char *mask) @@ -690,12 +689,6 @@ void pmodule_cmd_211(void (*func) (const char *buf)) ircdproto.ircd_cmd_211 = func; } -void -pmodule_cmd_svspart(void (*func) (const char *source, const char *nick, const char *chan)) -{ - ircdproto.ircd_cmd_svspart = func; -} - void pmodule_cmd_swhois(void (*func) (const char *source, const char *who, const char *mask)) { ircdproto.ircd_cmd_swhois = func; diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 2af499dfb..123fb81fb 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -1230,11 +1230,6 @@ int anope_event_pass(const char *source, int ac, const char **av) return MOD_CONT; } -void bahamut_cmd_svspart(const char *source, const char *nick, const char *chan) -{ - /* Can not find any reference to these in Bahamut */ -} - void bahamut_cmd_swhois(const char *source, const char *who, const char *mask) { /* not supported */ @@ -1363,7 +1358,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(bahamut_cmd_242); pmodule_cmd_243(bahamut_cmd_243); pmodule_cmd_211(bahamut_cmd_211); - pmodule_cmd_svspart(bahamut_cmd_svspart); pmodule_cmd_swhois(bahamut_cmd_swhois); pmodule_cmd_eob(bahamut_cmd_eob); pmodule_flood_mode_check(bahamut_flood_mode_check); diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 72b62a4ad..00787eb8d 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -1437,11 +1437,6 @@ int anope_event_pass(const char *source, int ac, const char **av) return MOD_CONT; } -void charybdis_cmd_svspart(const char *source, const char *nick, const char *chan) -{ - /* Not Supported by this IRCD */ -} - void charybdis_cmd_swhois(const char *source, const char *who, const char *mask) { /* not supported */ @@ -1598,7 +1593,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(charybdis_cmd_242); pmodule_cmd_243(charybdis_cmd_243); pmodule_cmd_211(charybdis_cmd_211); - pmodule_cmd_svspart(charybdis_cmd_svspart); pmodule_cmd_swhois(charybdis_cmd_swhois); pmodule_cmd_eob(charybdis_cmd_eob); pmodule_flood_mode_check(charybdis_flood_mode_check); diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 64524fe5b..5b0f3a859 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -1497,9 +1497,9 @@ void InspIRCdProto::cmd_svsjoin(const char *source, const char *nick, const char send_cmd(source, "SVSJOIN %s %s", nick, chan); } -void inspircd_cmd_svspart(const char *source, const char *nick, const char *chan) +void InspIRCdProto::cmd_svspart(const char *source, const char *nick, const char *chan) { - send_cmd(source, "SVSPART %s %s", nick, chan); + send_cmd(source, "SVSPART %s %s", nick, chan); } void inspircd_cmd_swhois(const char *source, const char *who, const char *mask) @@ -1589,7 +1589,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(inspircd_cmd_242); pmodule_cmd_243(inspircd_cmd_243); pmodule_cmd_211(inspircd_cmd_211); - pmodule_cmd_svspart(inspircd_cmd_svspart); pmodule_cmd_swhois(inspircd_cmd_swhois); pmodule_cmd_eob(inspircd_cmd_eob); pmodule_flood_mode_check(inspircd_flood_mode_check); diff --git a/src/protocol/inspircd11.h b/src/protocol/inspircd11.h index 8ed804b43..01106b162 100755 --- a/src/protocol/inspircd11.h +++ b/src/protocol/inspircd11.h @@ -113,4 +113,5 @@ class InspIRCdProto : public IRCDProtoNew { void cmd_nc_change(User *); void cmd_svid_umode2(User *, const char *); void cmd_svsjoin(const char *, const char *, const char *, const char *); + void cmd_svspart(const char *, const char *, const char *); } ircd_proto; diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 2f927ebcf..b2b4d23ba 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -1343,11 +1343,6 @@ int anope_event_pass(const char *source, int ac, const char **av) return MOD_CONT; } -void ratbox_cmd_svspart(const char *source, const char *nick, const char *chan) -{ - /* Not Supported by this IRCD */ -} - void ratbox_cmd_swhois(const char *source, const char *who, const char *mask) { /* not supported */ @@ -1475,7 +1470,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(ratbox_cmd_242); pmodule_cmd_243(ratbox_cmd_243); pmodule_cmd_211(ratbox_cmd_211); - pmodule_cmd_svspart(ratbox_cmd_svspart); pmodule_cmd_swhois(ratbox_cmd_swhois); pmodule_cmd_eob(ratbox_cmd_eob); pmodule_flood_mode_check(ratbox_flood_mode_check); diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index ce730bcb3..1f7818295 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -1464,9 +1464,9 @@ void UnrealIRCdProto::cmd_svsjoin(const char *source, const char *nick, const ch parv[1] - nick to make part parv[2] - channel(s) to part */ -void unreal_cmd_svspart(const char *source, const char *nick, const char *chan) +void UnrealIRCdProto::cmd_svspart(const char *source, const char *nick, const char *chan) { - send_cmd(source, "%s %s :%s", send_token("SVSPART", "BT"), nick, chan); + send_cmd(source, "%s %s :%s", send_token("SVSPART", "BT"), nick, chan); } int anope_event_globops(const char *source, int ac, const char **av) @@ -1900,7 +1900,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(unreal_cmd_242); pmodule_cmd_243(unreal_cmd_243); pmodule_cmd_211(unreal_cmd_211); - pmodule_cmd_svspart(unreal_cmd_svspart); pmodule_cmd_swhois(unreal_cmd_swhois); pmodule_cmd_eob(unreal_cmd_eob); pmodule_flood_mode_check(unreal_flood_mode_check); diff --git a/src/protocol/unreal32.h b/src/protocol/unreal32.h index ca413ccaa..1005e7bd6 100644 --- a/src/protocol/unreal32.h +++ b/src/protocol/unreal32.h @@ -138,4 +138,5 @@ class UnrealIRCdProto : public IRCDProtoNew { void cmd_nc_change(User *); void cmd_svid_umode2(User *, const char *); void cmd_svsjoin(const char *, const char *, const char *, const char *); + void cmd_svspart(const char *, const char *, const char *); } ircd_proto; |