diff options
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | src/protocol/inspircd11.c | 57 |
2 files changed, 1 insertions, 58 deletions
@@ -46,7 +46,7 @@ Anope Version S V N 05/12 F moduleNoticeLang() now calls notice_user instead of notice(). [ #00] Provided by Robin Burchell <w00t@inspircd.org> - 2008 -08/08 F Removed sajoin fro minspircd protocol support. [ #00] +08/08 F Removed sa-commands from inspircd protocol support. [ #00] Provided by Christian Schroer <Christian.Schroer@coderschlampe.com> - 2008 07/20 F Updated Deutch language file. [#892] diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 855761bf2..532e0e04a 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -386,8 +386,6 @@ int has_globopsmod = 0; The ircd tends to /squit us if we issue unsupported cmds. - katsklaw */ int has_svsholdmod = 0; -int has_sapartmod = 0; -int has_sanickmod = 0; int has_chghostmod = 0; int has_chgidentmod = 0; @@ -486,9 +484,6 @@ void moduleAddIRCDMsgs(void) { m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m); m = createMessage("GLOBOPS", anope_event_null); addCoreMessage(IRCD,m); m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m); - m = createMessage("SAMODE", anope_event_samode); addCoreMessage(IRCD,m); - m = createMessage("SANICK", anope_event_sanick); addCoreMessage(IRCD,m); - m = createMessage("SAPART", anope_event_sapart); addCoreMessage(IRCD,m); m = createMessage("SVSMODE", anope_event_mode) ;addCoreMessage(IRCD,m); m = createMessage("QLINE", anope_event_null); addCoreMessage(IRCD,m); m = createMessage("GLINE", anope_event_null); addCoreMessage(IRCD,m); @@ -700,44 +695,6 @@ int anope_event_fmode(char *source, int ac, char **av) return anope_event_mode(source, ac - 1, newav); } -int anope_event_samode(char *source, int ac, char **av) -{ - /* :source SAMODE targets modes */ - if (ac < 2) - return MOD_CONT; - return anope_event_mode(source, ac, av); - return MOD_CONT; -} - -int anope_event_sanick(char *source, int ac, char **av) -{ - if (has_sanickmod == 1) { - /* :source SANICK old new */ - if (ac != 2) - return MOD_CONT; - do_nick(av[0], av[1], NULL, NULL, NULL, NULL, 0, 0, 0, NULL, NULL); - return MOD_CONT; - } else { - anope_cmd_global(s_OperServ, "m_sanick not loaded!"); - } - return MOD_CONT; -} - -int anope_event_sapart(char *source, int ac, char **av) -{ - if (has_sapartmod == 1) { - char *newav[1]; - if (ac < 2) - return MOD_CONT; - newav[0] = av[1]; - do_part(av[0], 1, newav); - return MOD_CONT; - } else { - anope_cmd_global(s_OperServ, "m_sapart not loaded!"); - } - return MOD_CONT; -} - int anope_event_fjoin(char *source, int ac, char **av) { char *newav[10]; @@ -1543,8 +1500,6 @@ int anope_event_capab(char *source, int ac, char **av) has_servicesmod = 0; has_globopsmod = 0; has_svsholdmod = 0; - has_sapartmod = 0; - has_sanickmod = 0; has_chghostmod = 0; has_chgidentmod = 0; @@ -1558,12 +1513,6 @@ int anope_event_capab(char *source, int ac, char **av) if (strstr(av[1], "m_svshold.so")) { has_svsholdmod = 1; } - if (strstr(av[1], "m_sapart.so")) { - has_sapartmod = 1; - } - if (strstr(av[1], "m_sanick.so")) { - has_sanickmod = 1; - } if (strstr(av[1], "m_chghost.so")) { has_chghostmod = 1; } @@ -1588,12 +1537,6 @@ int anope_event_capab(char *source, int ac, char **av) if (has_svsholdmod == 0) { anope_cmd_global(s_OperServ, "SVSHOLD missing, Usage disabled until module is loaded."); } - if (has_sapartmod == 0) { - anope_cmd_global(s_OperServ, "SAPART missing, Usage disabled until module is loaded."); - } - if (has_sanickmod == 0) { - anope_cmd_global(s_OperServ, "SANICK missing, Usage disabled until module is loaded."); - } if (has_chghostmod == 0) { anope_cmd_global(s_OperServ, "CHGHOST missing, Usage disabled until module is loaded."); } |