summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-01 10:51:08 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-04 09:47:26 +0000
commit625e5435f51650f547f4411441c0b7b958c53d30 (patch)
treec0a73adec088b78db07083989960fc15b804c2bd /src
parent09da1499d7bc3a380c2b828eed22e3639d6e5e27 (diff)
ident: rename ext to socket.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_ident.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index f3f8e7dd7..81bdf29c5 100644
--- 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;
}