# 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
{
private:
unsigned int timeout;
- bool NoLookupPrefix;
+ bool prefixunqueried;
SimpleExtItem<IdentRequestSocket, stdalgo::culldeleter> ext;
static void PrefixIdent(LocalUser* user)
{
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
IdentRequestSocket *isock = ext.get(user);
if (!isock)
{
- if (NoLookupPrefix)
+ if (prefixunqueried)
PrefixIdent(user);
return MOD_RES_PASSTHRU;
}