]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
ident: rename nolookupprefix to prefixunqueried.
authorPeter Powell <petpow@saberuk.com>
Fri, 1 Feb 2019 10:49:00 +0000 (10:49 +0000)
committerPeter Powell <petpow@saberuk.com>
Mon, 4 Feb 2019 09:47:26 +0000 (09:47 +0000)
docs/conf/modules.conf.example
src/modules/m_ident.cpp

index c9b6e298c43f5b6931a733ef7250b70ead066ef2..27068cbdbac799f91e62c14848d8246c279f940a 100644 (file)
 # 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. <connect useident="off">) will be #
 # prefixed with a "~". If off, the ident of those users will not be   #
 # prefixed. Default is off.                                           #
 #
-#<ident timeout="5" nolookupprefix="no">
+#<ident timeout="5" prefixunqueried="no">
 
 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
 # Invite exception module: Adds support for channel invite exceptions
index f47901123d39c71d0bff0d99c6f60755bae7fe83..f3f8e7dd79eec16ada66b03baa1ccf11521eda8f 100644 (file)
@@ -256,7 +256,7 @@ class ModuleIdent : public Module
 {
  private:
        unsigned int timeout;
-       bool NoLookupPrefix;
+       bool prefixunqueried;
        SimpleExtItem<IdentRequestSocket, stdalgo::culldeleter> 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;
                }