inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 625e5435f51650f547f4411441c0b7b958c53d30
parent 09da1499d7bc3a380c2b828eed22e3639d6e5e27
Author: Peter Powell <petpow@saberuk.com>
Date:   Fri,  1 Feb 2019 10:51:08 +0000

ident: rename ext to socket.

Diffstat:
Msrc/modules/m_ident.cpp | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp @@ -257,7 +257,7 @@ class ModuleIdent : public Module private: unsigned int timeout; bool prefixunqueried; - SimpleExtItem<IdentRequestSocket, stdalgo::culldeleter> ext; + SimpleExtItem<IdentRequestSocket, stdalgo::culldeleter> socket; static void PrefixIdent(LocalUser* user) { @@ -279,7 +279,7 @@ class ModuleIdent : public Module public: ModuleIdent() - : ext("ident_socket", ExtensionItem::EXT_USER, this) + : socket("ident_socket", ExtensionItem::EXT_USER, this) { } @@ -297,12 +297,12 @@ class ModuleIdent : public Module void OnSetUserIP(LocalUser* user) CXX11_OVERRIDE { - IdentRequestSocket* isock = ext.get(user); + IdentRequestSocket* isock = socket.get(user); if (isock) { // If an ident lookup request was in progress then cancel it. isock->Close(); - ext.unset(user); + socket.unset(user); } // The ident protocol requires that clients are connecting over a protocol with ports. @@ -322,7 +322,7 @@ class ModuleIdent : public Module try { isock = new IdentRequestSocket(user); - ext.set(user, isock); + socket.set(user, isock); } catch (ModuleException &e) { @@ -337,7 +337,7 @@ class ModuleIdent : public Module ModResult OnCheckReady(LocalUser *user) CXX11_OVERRIDE { /* Does user have an ident socket attached at all? */ - IdentRequestSocket *isock = ext.get(user); + IdentRequestSocket* isock = socket.get(user); if (!isock) { if (prefixunqueried) @@ -373,7 +373,7 @@ class ModuleIdent : public Module } isock->Close(); - ext.unset(user); + socket.unset(user); return MOD_RES_PASSTHRU; }