summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--lang/cat.l18
-rw-r--r--lang/de.l18
-rw-r--r--lang/en_us.l19
-rw-r--r--lang/es.l18
-rw-r--r--lang/fr.l18
-rw-r--r--lang/gr.l18
-rw-r--r--lang/hun.l18
-rw-r--r--lang/it.l18
-rw-r--r--lang/nl.l18
-rw-r--r--lang/pl.l18
-rw-r--r--lang/pt.l18
-rw-r--r--lang/ru.l18
-rw-r--r--lang/tr.l18
-rw-r--r--src/core/ns_saset.c23
-rw-r--r--version.log6
16 files changed, 264 insertions, 1 deletions
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. <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]
diff --git a/lang/de.l b/lang/de.l
index ed2fd02df..c31a2a5fc 100644
--- a/lang/de.l
+++ b/lang/de.l
@@ -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]
diff --git a/lang/es.l b/lang/es.l
index 4f21049bd..c907cd02f 100644
--- a/lang/es.l
+++ b/lang/es.l
@@ -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]
diff --git a/lang/fr.l b/lang/fr.l
index 85ee425b8..01eba5779 100644
--- a/lang/fr.l
+++ b/lang/fr.l
@@ -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]
diff --git a/lang/gr.l b/lang/gr.l
index a53d06ccd..a2b179d34 100644
--- a/lang/gr.l
+++ b/lang/gr.l
@@ -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ó]
diff --git a/lang/it.l b/lang/it.l
index e60cac868..c812910ae 100644
--- a/lang/it.l
+++ b/lang/it.l
@@ -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]
diff --git a/lang/nl.l b/lang/nl.l
index 70970a175..a157bac50 100644
--- a/lang/nl.l
+++ b/lang/nl.l
@@ -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]
diff --git a/lang/pl.l b/lang/pl.l
index c889b185d..612a82f5a 100644
--- a/lang/pl.l
+++ b/lang/pl.l
@@ -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]
diff --git a/lang/pt.l b/lang/pt.l
index 47e239fcd..b2b7826de 100644
--- a/lang/pt.l
+++ b/lang/pt.l
@@ -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]
diff --git a/lang/ru.l b/lang/ru.l
index e6c05c603..3f7bccf2c 100644
--- a/lang/ru.l
+++ b/lang/ru.l
@@ -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 íèê [ïàðîëü]
diff --git a/lang/tr.l b/lang/tr.l
index 88a7178fc..4c807ca24 100644
--- a/lang/tr.l
+++ b/lang/tr.l
@@ -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