From f5ab326d07f82c7418020829985e8f26b1bcd32a Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 10 Sep 2006 16:07:32 +0000 Subject: [PATCH] BUILD : 1.7.15 (1148) BUGS : 588 NOTES : Added SASET AUTOOP to NickServ to match SET AUTOOP git-svn-id: svn://svn.anope.org/anope/trunk@1148 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@871 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + lang/cat.l | 18 ++++++++++++++++++ lang/de.l | 18 ++++++++++++++++++ lang/en_us.l | 19 +++++++++++++++++++ lang/es.l | 18 ++++++++++++++++++ lang/fr.l | 18 ++++++++++++++++++ lang/gr.l | 18 ++++++++++++++++++ lang/hun.l | 18 ++++++++++++++++++ lang/it.l | 18 ++++++++++++++++++ lang/nl.l | 18 ++++++++++++++++++ lang/pl.l | 18 ++++++++++++++++++ lang/pt.l | 18 ++++++++++++++++++ lang/ru.l | 18 ++++++++++++++++++ lang/tr.l | 18 ++++++++++++++++++ src/core/ns_saset.c | 23 +++++++++++++++++++++++ version.log | 6 +++++- 16 files changed, 264 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ea83efe52..798cb2d0d 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Anope Version S V N -------------------- Provided by Anope Dev. - 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 @@ -661,6 +661,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/de.l b/lang/de.l index ed2fd02df..c31a2a5fc 100644 --- a/lang/de.l +++ b/lang/de.l @@ -677,6 +677,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/es.l b/lang/es.l index 4f21049bd..c907cd02f 100644 --- a/lang/es.l +++ b/lang/es.l @@ -665,6 +665,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/fr.l b/lang/fr.l index 85ee425b8..01eba5779 100644 --- a/lang/fr.l +++ b/lang/fr.l @@ -671,6 +671,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/gr.l b/lang/gr.l index a53d06ccd..a2b179d34 100644 --- a/lang/gr.l +++ b/lang/gr.l @@ -659,6 +659,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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 @@ -658,6 +658,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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ó] diff --git a/lang/it.l b/lang/it.l index e60cac868..c812910ae 100644 --- a/lang/it.l +++ b/lang/it.l @@ -654,6 +654,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/nl.l b/lang/nl.l index 70970a175..a157bac50 100644 --- a/lang/nl.l +++ b/lang/nl.l @@ -663,6 +663,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/pl.l b/lang/pl.l index c889b185d..612a82f5a 100644 --- a/lang/pl.l +++ b/lang/pl.l @@ -710,6 +710,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/pt.l b/lang/pt.l index 47e239fcd..b2b7826de 100644 --- a/lang/pt.l +++ b/lang/pt.l @@ -665,6 +665,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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] diff --git a/lang/ru.l b/lang/ru.l index e6c05c603..3f7bccf2c 100644 --- a/lang/ru.l +++ b/lang/ru.l @@ -659,6 +659,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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 íèê [ïàðîëü] diff --git a/lang/tr.l b/lang/tr.l index 88a7178fc..4c807ca24 100644 --- a/lang/tr.l +++ b/lang/tr.l @@ -666,6 +666,15 @@ NICK_SASET_NOEXPIRE_ON 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] @@ -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