diff options
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | lang/en_us.l | 2 | ||||
-rw-r--r-- | src/protocol/inspircd11.c | 16 | ||||
-rw-r--r-- | version.log | 6 |
4 files changed, 21 insertions, 5 deletions
@@ -19,6 +19,8 @@ Anope Version S V N 08/27 F Is not posible to use CS SET XOP when cs_xop is not loaded. [#747] 08/27 F SA and SO can be kicked by ChanServ now. [#753] 08/27 F Added missed help for NS CONFIRM. [#759] +08/27 F Fixed typo in en_us.l [#767] +08/27 F inspircd11 protocol now uses svshold [#683] Anope Version 1.7.19 -------------------- diff --git a/lang/en_us.l b/lang/en_us.l index a1c1041cb..90e524b25 100644 --- a/lang/en_us.l +++ b/lang/en_us.l @@ -3830,7 +3830,7 @@ NICK_HELP_RECOVER user online with the same nickname as the user you're trying to recover your nick from. This causes the IRC servers to disconnect the other user. This fake user will - will remain online for one minute to ensure that the other + remain online for one minute to ensure that the other user does not immediately reconnect; after that minute, you can reclaim your nick. Alternatively, use the RELEASE command (%R%S HELP RELEASE) to get the nick diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 21ac9dbe7..8f42c46fc 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -382,6 +382,7 @@ CUMode myCumodes[128] = { int has_servicesmod = 0; int has_globopsmod = 0; +int has_svsholdmod = 0; void inspircd_set_umode(User * user, int ac, char **av) { @@ -1487,6 +1488,7 @@ int anope_event_capab(char *source, int ac, char **av) /* reset CAPAB */ has_servicesmod = 0; has_globopsmod = 0; + has_svsholdmod = 0; } else if (strcasecmp(av[0], "MODULES") == 0) { if (strstr(av[1], "m_globops.so")) { has_globopsmod = 1; @@ -1494,6 +1496,9 @@ int anope_event_capab(char *source, int ac, char **av) if (strstr(av[1], "m_services.so")) { has_servicesmod = 1; } + if (strstr(av[1], "m_svshold.so")) { + has_svsholdmod = 1; + } } else if (strcasecmp(av[0], "END") == 0) { if (has_globopsmod == 0) { send_cmd(NULL, @@ -1533,13 +1538,18 @@ int anope_event_capab(char *source, int ac, char **av) /* SVSHOLD - set */ void inspircd_cmd_svshold(char *nick) { - /* Not supported by this IRCD */ + if (has_svsholdmod == 1) { + send_cmd(s_OperServ, "SVSHOLD %s %ds :%s", nick, NSReleaseTimeout, + "Being held for registered user"); + } } /* SVSHOLD - release */ void inspircd_cmd_release_svshold(char *nick) { - /* Not Supported by this IRCD */ + if (has_svsholdmod == 1) { + send_cmd(s_OperServ, "SVSHOLD %s", nick); + } } /* UNSGLINE */ @@ -1794,7 +1804,7 @@ int AnopeInit(int argc, char **argv) moduleAddAuthor("Anope"); moduleAddVersion - ("$Id: inspircd.c 1207 2006-12-10 12:27:56Z geniusdex $"); + ("$Id: inspircd11.c 2007-08-27 20:45 GMT -5 katsklaw $"); moduleSetType(PROTOCOL); pmodule_ircd_version("inspircdIRCd 1.1"); diff --git a/version.log b/version.log index da2e794df..e8dacda3d 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="19" VERSION_EXTRA="-svn" -VERSION_BUILD="1277" +VERSION_BUILD="1278" # $Log$ # +# BUILD : 1.7.19 (1278) +# BUGS : 683, 767 +# NOTES : [1] typo in en_us.l [2] Provided by katsklaws patch: inspircd11 protocol now uses svshold. +# # BUILD : 1.7.19 (1277) # BUGS : 759 # NOTES : Added missed NS CONFIRM help. |