From: Peter Powell Date: Fri, 1 Feb 2019 10:49:00 +0000 (+0000) Subject: ident: rename nolookupprefix to prefixunqueried. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=09da1499d7bc3a380c2b828eed22e3639d6e5e27;p=user%2Fhenk%2Fcode%2Finspircd.git ident: rename nolookupprefix to prefixunqueried. --- diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example index c9b6e298c..27068cbdb 100644 --- a/docs/conf/modules.conf.example +++ b/docs/conf/modules.conf.example @@ -1063,12 +1063,12 @@ # the timeout for ident lookups here. If not defined, it will default # # to 5 seconds. This is a non-blocking timeout which holds the user # # in a 'connecting' state until the lookup is complete. # -# nolookupprefix: If on, the idents of users being in a connect class # +# prefixunqueried: If on, the idents of users being in a connect class# # with ident lookups disabled (i.e. ) will be # # prefixed with a "~". If off, the ident of those users will not be # # prefixed. Default is off. # # -# +# #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # Invite exception module: Adds support for channel invite exceptions diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index f47901123..f3f8e7dd7 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -256,7 +256,7 @@ class ModuleIdent : public Module { private: unsigned int timeout; - bool NoLookupPrefix; + bool prefixunqueried; SimpleExtItem ext; static void PrefixIdent(LocalUser* user) @@ -292,7 +292,7 @@ class ModuleIdent : public Module { ConfigTag* tag = ServerInstance->Config->ConfValue("ident"); timeout = tag->getDuration("timeout", 5, 1, 60); - NoLookupPrefix = tag->getBool("nolookupprefix", false); + prefixunqueried = tag->getBool("prefixunqueried"); } void OnSetUserIP(LocalUser* user) CXX11_OVERRIDE @@ -340,7 +340,7 @@ class ModuleIdent : public Module IdentRequestSocket *isock = ext.get(user); if (!isock) { - if (NoLookupPrefix) + if (prefixunqueried) PrefixIdent(user); return MOD_RES_PASSTHRU; }