diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | lang/cat.l | 18 | ||||
-rw-r--r-- | lang/de.l | 18 | ||||
-rw-r--r-- | lang/en_us.l | 19 | ||||
-rw-r--r-- | lang/es.l | 18 | ||||
-rw-r--r-- | lang/fr.l | 18 | ||||
-rw-r--r-- | lang/gr.l | 18 | ||||
-rw-r--r-- | lang/hun.l | 18 | ||||
-rw-r--r-- | lang/it.l | 18 | ||||
-rw-r--r-- | lang/nl.l | 18 | ||||
-rw-r--r-- | lang/pl.l | 18 | ||||
-rw-r--r-- | lang/pt.l | 18 | ||||
-rw-r--r-- | lang/ru.l | 18 | ||||
-rw-r--r-- | lang/tr.l | 18 | ||||
-rw-r--r-- | src/core/ns_saset.c | 23 | ||||
-rw-r--r-- | version.log | 6 |
16 files changed, 264 insertions, 1 deletions
@@ -1,6 +1,7 @@ Anope Version S V N -------------------- Provided by Anope Dev. <dev@anope.org> - 2006 +09/10 A Added SASET AUTOOP to NickServ to match SET AUTOOP. [#588] 08/09 F Fixed port checking when using command line switches. [#575] 08/14 F Fixed db_mysql_query for better robustness. [#585] 08/27 F Fixed mod_current_module being incorrect resulting in segfault. [#593] diff --git a/lang/cat.l b/lang/cat.l index ff5947321..c145a338b 100644 --- a/lang/cat.l +++ b/lang/cat.l @@ -662,6 +662,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mascara] NICK_ACCESS_ALREADY_PRESENT @@ -3914,6 +3923,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Sintaxis: RECOVER nickname [clau] @@ -678,6 +678,15 @@ NICK_SASET_NOEXPIRE_OFF Nickname %s wird wieder verfallen. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [Maske] NICK_ACCESS_ALREADY_PRESENT @@ -3935,6 +3944,15 @@ NICK_HELP_SASET_NOEXPIRE Beschränkt auf Services Admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Syntax: RECOVER Nickname [Passwort] diff --git a/lang/en_us.l b/lang/en_us.l index 7d44dabeb..022b75fe0 100644 --- a/lang/en_us.l +++ b/lang/en_us.l @@ -652,6 +652,15 @@ NICK_SASET_NOEXPIRE_ON NICK_SASET_NOEXPIRE_OFF Nick %s will expire. +# SASET AUTOOP responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + # ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mask] @@ -3655,6 +3664,7 @@ NICK_HELP_SASET HIDE Hide certain pieces of nickname information MSG Change the communication method of Services NOEXPIRE Prevent the nickname from expiring + AUTOOP Turn autoop on or off Type %R%S HELP SASET option for more information on a specific option. The options will be set on the given @@ -3784,6 +3794,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Syntax: RECOVER nickname [password] @@ -666,6 +666,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mascara] NICK_ACCESS_ALREADY_PRESENT @@ -3888,6 +3897,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Sintaxis: RECOVER nickname [clave] @@ -672,6 +672,15 @@ NICK_SASET_NOEXPIRE_OFF Le pseudo %s expirera. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mask] NICK_ACCESS_ALREADY_PRESENT @@ -3951,6 +3960,15 @@ NICK_HELP_SASET_NOEXPIRE Limité aux Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Syntaxe: RECOVER pseudo [motdepasse] @@ -660,6 +660,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mask] NICK_ACCESS_ALREADY_PRESENT @@ -3914,6 +3923,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Óýíôáîç: RECOVER nickname [password] diff --git a/lang/hun.l b/lang/hun.l index cce5d4bb1..4149b5336 100644 --- a/lang/hun.l +++ b/lang/hun.l @@ -659,6 +659,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [maszk] NICK_ACCESS_ALREADY_PRESENT @@ -3836,6 +3845,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Syntax: RECOVER nicknév [jelszó] @@ -655,6 +655,15 @@ NICK_SASET_NOEXPIRE_OFF Il nick %s scadrà. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mask] NICK_ACCESS_ALREADY_PRESENT @@ -3798,6 +3807,15 @@ NICK_HELP_SASET_NOEXPIRE Limitato ai Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Sintassi: RECOVER nick [password] @@ -664,6 +664,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mask] NICK_ACCESS_ALREADY_PRESENT @@ -3864,6 +3873,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Gebruik: RECOVER nick [wachtwoord] @@ -711,6 +711,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [maska] NICK_ACCESS_ALREADY_PRESENT @@ -4094,6 +4103,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Sk³adnia: RECOVER nick [has³o] @@ -666,6 +666,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [máscara] NICK_ACCESS_ALREADY_PRESENT @@ -3817,6 +3826,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Sintaxe: RECOVER nick [senha] @@ -660,6 +660,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mask] NICK_ACCESS_ALREADY_PRESENT @@ -3845,6 +3854,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Ñèíòàêñèñ: RECOVER íèê [ïàðîëü] @@ -667,6 +667,15 @@ NICK_SASET_NOEXPIRE_OFF Nick %s will expire. # ACCESS responses +NICK_SASET_AUTOOP_SYNTAX + SASET nickname AUTOOP {ON | OFF} +NICK_SASET_AUTOOP_ON + Services will now autoop %s in channels. +NICK_SASET_AUTOOP_OFF + Services will no longer autoop %s in channels. + + +# ACCESS responses NICK_ACCESS_SYNTAX ACCESS {ADD | DEL | LIST} [mask] NICK_ACCESS_ALREADY_PRESENT @@ -3908,6 +3917,15 @@ NICK_HELP_SASET_NOEXPIRE Limited to Services admins. +NICK_HELP_SASET_AUTOOP + Syntax: SASET nickname AUTOOP {ON | OFF} + + Sets whether the given nickname will be opped automatically. + Set to ON to allow ChanServ to op you automatically when joining + channels. + + Limited to Services admins. + NICK_HELP_RECOVER Kullanýmý: RECOVER nick [þifre] diff --git a/src/core/ns_saset.c b/src/core/ns_saset.c index cad28afc1..8b166a29b 100644 --- a/src/core/ns_saset.c +++ b/src/core/ns_saset.c @@ -31,6 +31,7 @@ int do_saset_private(User * u, NickCore * nc, char *param); int do_saset_msg(User * u, NickCore * nc, char *param); int do_saset_hide(User * u, NickCore * nc, char *param); int do_saset_noexpire(User * u, NickAlias * nc, char *param); +int do_saset_autoop(User * u, NickCore * nc, char *param); void myNickServHelp(User * u); /** @@ -87,6 +88,10 @@ int AnopeInit(int argc, char **argv) -1, NICK_HELP_SASET_NOEXPIRE, NICK_HELP_SASET_NOEXPIRE); moduleAddCommand(NICKSERV, c, MOD_UNIQUE); + c = createCommand("SASET AUTOOP", NULL, is_services_admin, -1, -1, + -1, NICK_HELP_SASET_AUTOOP, + NICK_HELP_SASET_AUTOOP); + moduleAddCommand(NICKSERV, c, MOD_UNIQUE); moduleSetNickHelp(myNickServHelp); @@ -175,6 +180,8 @@ int do_saset(User * u) do_saset_hide(u, na->nc, param); } else if (stricmp(cmd, "NOEXPIRE") == 0) { do_saset_noexpire(u, na, param); + } else if (stricmp(cmd, "AUTOOP") == 0) { + do_saset_autoop(u, na->nc, param); } else { notice_lang(s_NickServ, u, NICK_SASET_UNKNOWN_OPTION, cmd); } @@ -485,4 +492,20 @@ int do_saset_noexpire(User * u, NickAlias * na, char *param) return MOD_CONT; } +int do_saset_autoop(User * u, NickCore * nc, char *param) +{ + if (stricmp(param, "ON") == 0) { + nc->flags &= ~NI_AUTOOP; + notice_lang(s_NickServ, u, NICK_SASET_AUTOOP_ON, nc->display); + } else if (stricmp(param, "OFF") == 0) { + nc->flags |= NI_AUTOOP; + notice_lang(s_NickServ, u, NICK_SASET_AUTOOP_OFF, nc->display); + } else { + syntax_error(s_NickServ, u, "SET AUTOOP", NICK_SASET_AUTOOP_SYNTAX); + } + + return MOD_CONT; +} + + /* EOF */ diff --git a/version.log b/version.log index c180e9a3b..bbb8a48ca 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="15" VERSION_EXTRA="-svn" -VERSION_BUILD="1147" +VERSION_BUILD="1148" # $Log$ # +# BUILD : 1.7.15 (1148) +# BUGS : 588 +# NOTES : Added SASET AUTOOP to NickServ to match SET AUTOOP +# # BUILD : 1.7.15 (1147) # BUGS : 587 # NOTES : Fixed missing help for /ns SET AUTOOP |