diff options
-rw-r--r-- | data/botserv.example.conf | 2 | ||||
-rw-r--r-- | data/chanserv.example.conf | 8 | ||||
-rw-r--r-- | data/nickserv.example.conf | 19 | ||||
-rw-r--r-- | data/operserv.example.conf | 12 | ||||
-rw-r--r-- | include/modules.h | 6 | ||||
-rw-r--r-- | language/anope.nl_NL.po | 2 | ||||
-rw-r--r-- | modules/commands/ns_access.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_cert.cpp | 9 | ||||
-rw-r--r-- | modules/commands/os_session.cpp | 2 | ||||
-rw-r--r-- | modules/pseudoclients/nickserv.cpp | 8 |
10 files changed, 40 insertions, 30 deletions
diff --git a/data/botserv.example.conf b/data/botserv.example.conf index e93810c81..40853e4d7 100644 --- a/data/botserv.example.conf +++ b/data/botserv.example.conf @@ -261,7 +261,6 @@ module */ gentlebadwordreason = yes } - command { service = "BotServ"; name = "KICK"; command = "botserv/kick"; } command { service = "BotServ"; name = "KICK AMSG"; command = "botserv/kick/amsg"; } command { service = "BotServ"; name = "KICK BADWORDS"; command = "botserv/kick/badwords"; } @@ -277,6 +276,7 @@ command { service = "BotServ"; name = "KICK UNDERLINES"; command = "botserv/kick command { service = "BotServ"; name = "SET DONTKICKOPS"; command = "botserv/set/dontkickops"; } command { service = "BotServ"; name = "SET DONTKICKVOICES"; command = "botserv/set/dontkickvoices"; } + /* * bs_set * diff --git a/data/chanserv.example.conf b/data/chanserv.example.conf index 5d827e63d..84d3be57b 100644 --- a/data/chanserv.example.conf +++ b/data/chanserv.example.conf @@ -114,6 +114,7 @@ module /* * The maximum number of entries on a channel's access list. + * If not set, the default is 1024. This can be set to 0 for unlimited. */ accessmax = 1024 @@ -855,7 +856,6 @@ module */ autokickreason = "User has been banned from the channel" } - command { service = "ChanServ"; name = "AKICK"; command = "chanserv/akick"; group = "chanserv/management"; } /* @@ -981,10 +981,11 @@ module */ listmax = 50 } - command { service = "ChanServ"; name = "LIST"; command = "chanserv/list"; permission = "chanserv/list"; group = "chanserv/admin"; } + command { service = "ChanServ"; name = "SET PRIVATE"; command = "chanserv/set/private"; } + /* * cs_log * @@ -1044,7 +1045,6 @@ module */ mlock = "+nt" } - command { service = "ChanServ"; name = "MODE"; command = "chanserv/mode"; group = "chanserv/management"; } command { service = "ChanServ"; name = "OWNER"; command = "chanserv/modes"; group = "chanserv/status"; set = "OWNER" } @@ -1062,6 +1062,7 @@ command { service = "ChanServ"; name = "DEHALFOP"; command = "chanserv/modes"; g command { service = "ChanServ"; name = "VOICE"; command = "chanserv/modes"; group = "chanserv/status"; set = "VOICE" } command { service = "ChanServ"; name = "DEVOICE"; command = "chanserv/modes"; group = "chanserv/status"; unset = "VOICE" } + /* * cs_register * @@ -1133,7 +1134,6 @@ module */ defbantype = 2 } - command { service = "ChanServ"; name = "SET"; command = "chanserv/set"; group = "chanserv/management"; } command { service = "ChanServ"; name = "SET AUTOOP"; command = "chanserv/set/autoop"; } command { service = "ChanServ"; name = "SET BANTYPE"; command = "chanserv/set/bantype"; } diff --git a/data/nickserv.example.conf b/data/nickserv.example.conf index 3e5e6b4d8..4791af26a 100644 --- a/data/nickserv.example.conf +++ b/data/nickserv.example.conf @@ -249,6 +249,7 @@ module /* * The maximum number of entries allowed on a nickname's access list. + * If not set, the default is 32. This number cannot be set to 0. */ accessmax = 32 @@ -260,7 +261,6 @@ module */ addaccessonreg = yes } - command { service = "NickServ"; name = "ACCESS"; command = "nickserv/access"; } /* @@ -298,7 +298,16 @@ command { service = "NickServ"; name = "ALIST"; command = "nickserv/alist"; } * * Used for configuring your SSL certificate list, which can be used to automatically identify you. */ -module { name = "ns_cert"; accessmax = 5; } +module +{ + name = "ns_cert" + + /* + * The maximum number of entries allowed on a nickname's certificate fingerprint list. + * The default is 5. This number cannot be set to 0. + */ + accessmax = 5 +} command { service = "NickServ"; name = "CERT"; command = "nickserv/cert"; } /* @@ -389,6 +398,7 @@ command { service = "NickServ"; name = "INFO"; command = "nickserv/info"; } command { service = "NickServ"; name = "SET HIDE"; command = "nickserv/set/hide"; } command { service = "NickServ"; name = "SASET HIDE"; command = "nickserv/saset/hide"; permission = "nickserv/saset/hide"; } + /* * ns_list * @@ -411,6 +421,7 @@ command { service = "NickServ"; name = "LIST"; command = "nickserv/list"; group command { service = "NickServ"; name = "SET PRIVATE"; command = "nickserv/set/private"; } command { service = "NickServ"; name = "SASET PRIVATE"; command = "nickserv/saset/private"; permission = "nickserv/saset/private"; } + /* * ns_logout * @@ -484,7 +495,6 @@ module */ #unconfirmedexpire = 1d } - command { service = "NickServ"; name = "CONFIRM"; command = "nickserv/confirm"; } command { service = "NickServ"; name = "REGISTER"; command = "nickserv/register"; } command { service = "NickServ"; name = "RESEND"; command = "nickserv/resend"; } @@ -527,7 +537,6 @@ module #allowkillimmed = yes } - command { service = "NickServ"; name = "SET"; command = "nickserv/set"; } command { service = "NickServ"; name = "SASET"; command = "nickserv/saset"; permission = "nickserv/saset/"; group = "nickserv/admin"; } @@ -560,6 +569,7 @@ command { service = "NickServ"; name = "SASET SECURE"; command = "nickserv/saset command { service = "NickServ"; name = "SASET NOEXPIRE"; command = "nickserv/saset/noexpire"; permission = "nickserv/saset/noexpire"; } + /* * ns_set_misc * @@ -606,7 +616,6 @@ module */ #suspendexpire = 90d } - command { service = "NickServ"; name = "SUSPEND"; command = "nickserv/suspend"; permission = "nickserv/suspend"; group = "nickserv/admin"; } command { service = "NickServ"; name = "UNSUSPEND"; command = "nickserv/unsuspend"; permission = "nickserv/suspend"; group = "nickserv/admin"; } diff --git a/data/operserv.example.conf b/data/operserv.example.conf index 49c7b99c4..24d0538df 100644 --- a/data/operserv.example.conf +++ b/data/operserv.example.conf @@ -488,11 +488,10 @@ module /* * The number of LOGON/OPER news items to display when a user logs on. * - * This directive is optional, if no set it will default to 3. + * This directive is optional, if not set it will default to 3. */ #newscount = 3 } - command { service = "OperServ"; name = "LOGONNEWS"; command = "operserv/logonnews"; permission = "operserv/news"; } command { service = "OperServ"; name = "OPERNEWS"; command = "operserv/opernews"; permission = "operserv/news"; } command { service = "OperServ"; name = "RANDOMNEWS"; command = "operserv/randomnews"; permission = "operserv/news"; } @@ -555,24 +554,24 @@ module name = "os_session" /* - * Default session limit per host. Once a host reaches it's session limit, all clients attempting + * Default session limit per host. Once a host reaches its session limit, all clients attempting * to connect from that host will be killed. * - * This directive is require if os_session is loaded. + * This directive is required if os_session is loaded. */ defaultsessionlimit = 3 /* * The maximum session limit that may be set for a host in an exception. * - * This directive is require if os_session is loaded. + * This directive is required if os_session is loaded. */ maxsessionlimit = 100 /* * Sets the default expiry time for session exceptions. * - * This directive is require if os_session is loaded. + * This directive is required if os_session is loaded. */ exceptionexpiry = 1d @@ -643,7 +642,6 @@ module */ #superadmin = yes } - command { service = "OperServ"; name = "SET"; command = "operserv/set"; permission = "operserv/set"; } /* diff --git a/include/modules.h b/include/modules.h index 77cae7aac..84d07a8e5 100644 --- a/include/modules.h +++ b/include/modules.h @@ -185,9 +185,9 @@ class ModuleVersion public: /** Constructor - * @param major The major version numbber - * @param minor The minor version numbber - * @param patch The patch version numbber + * @param major The major version number + * @param minor The minor version number + * @param patch The patch version number */ ModuleVersion(int major, int minor, int patch); diff --git a/language/anope.nl_NL.po b/language/anope.nl_NL.po index 82addb1ce..1718468e0 100644 --- a/language/anope.nl_NL.po +++ b/language/anope.nl_NL.po @@ -7260,7 +7260,7 @@ msgstr "SET server.naam optie waarde" #: modules/commands/ns_cert.cpp:336 modules/commands/ns_cert.cpp:346 msgid "SSL certificate fingerprint accepted, you are now identified." -msgstr "SSL certificaat vingerafdruk aanvaard, je bent nu geïdentificeerd." +msgstr "SSL certificaatvingerafdruk aanvaard, je bent nu geïdentificeerd." #: modules/commands/cs_enforce.cpp:137 #, c-format diff --git a/modules/commands/ns_access.cpp b/modules/commands/ns_access.cpp index ddbcad0a2..15bddeb36 100644 --- a/modules/commands/ns_access.cpp +++ b/modules/commands/ns_access.cpp @@ -28,7 +28,7 @@ class CommandNSAccess : public Command return; } - if (nc->access.size() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax")) + if (nc->access.size() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax", "32")) { source.Reply(_("Sorry, the maximum of %d access entries has been reached."), Config->GetModule(this->owner)->Get<unsigned>("accessmax")); return; diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index 6b3aa2a14..ce7d53e51 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -138,7 +138,7 @@ class CommandNSCert : public Command { NSCertList *cl = nc->Require<NSCertList>("certificates"); - if (cl->GetCertCount() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax")) + if (cl->GetCertCount() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax", "5")) { source.Reply(_("Sorry, the maximum of %d certificate entries has been reached."), Config->GetModule(this->owner)->Get<unsigned>("accessmax")); return; @@ -334,7 +334,7 @@ class NSCert : public Module u->Identify(na); u->SendMessage(NickServ, _("SSL certificate fingerprint accepted, you are now identified.")); - Log(u) << "automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; + Log(NickServ) << u->GetMask() << " automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; } EventReturn OnNickValidate(User *u, NickAlias *na) anope_override @@ -342,9 +342,10 @@ class NSCert : public Module NSCertList *cl = certs.Get(na->nc); if (!u->fingerprint.empty() && cl && cl->FindCert(u->fingerprint)) { + BotInfo *NickServ = Config->GetClient("NickServ"); u->Identify(na); - u->SendMessage(Config->GetClient("NickServ"), _("SSL certificate fingerprint accepted, you are now identified.")); - Log(u) << "automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; + u->SendMessage(NickServ, _("SSL certificate fingerprint accepted, you are now identified.")); + Log(NickServ) << u->GetMask() << " automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; return EVENT_ALLOW; } diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index 80eee41f9..be003900d 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -692,7 +692,7 @@ class OSSession : public Module * decremented when the user is killed or quits - Adam */ ++session->count; - + if (kill && !exempt) { BotInfo *OperServ = Config->GetClient("OperServ"); diff --git a/modules/pseudoclients/nickserv.cpp b/modules/pseudoclients/nickserv.cpp index 652f91a88..4c512b427 100644 --- a/modules/pseudoclients/nickserv.cpp +++ b/modules/pseudoclients/nickserv.cpp @@ -151,6 +151,8 @@ class NickServCore : public Module, public NickServService this->Collide(u, na); return; } + else if (MOD_RESULT == EVENT_ALLOW) + return; if (!na->nc->HasExt("NS_SECURE") && u->IsRecognized()) { @@ -181,13 +183,13 @@ class NickServCore : public Module, public NickServService } else if (na->nc->HasExt("KILL_QUICK")) { - time_t killquick = Config->GetModule("nickserv")->Get<time_t>("killquick", "60s"); + time_t killquick = Config->GetModule("nickserv")->Get<time_t>("killquick", "20s"); u->SendMessage(NickServ, _("If you do not change within %s, I will change your nick."), Anope::Duration(killquick, u->Account()).c_str()); new NickServCollide(this, u, na, killquick); } else { - time_t kill = Config->GetModule("nickserv")->Get<time_t>("kill", "20s"); + time_t kill = Config->GetModule("nickserv")->Get<time_t>("kill", "60s"); u->SendMessage(NickServ, _("If you do not change within %s, I will change your nick."), Anope::Duration(kill, u->Account()).c_str()); new NickServCollide(this, u, na, kill); } @@ -392,7 +394,7 @@ class NickServCore : public Module, public NickServService void OnUserNickChange(User *u, const Anope::string &oldnick) anope_override { NickAlias *old_na = NickAlias::Find(oldnick), *na = NickAlias::Find(u->nick); - /* If the new nick isnt registerd or its registerd and not yours */ + /* If the new nick isn't registered or it's registered and not yours */ if (!na || na->nc != u->Account()) { /* Remove +r, but keep an account associated with the user */ |