summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 12:43:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 12:43:49 +0000
commit4feb11647111b47df1af4d8484ad1d53d437a4b3 (patch)
treea47c66d3f63d7cdcd9318d3620473f99b0c2e48a /src/modules/m_ident.cpp
parent036505a11a1de613d42d2021704cc325289c1b04 (diff)
Somehow, IMPORTANT changes got reverted.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4885 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 4ee49d4ec..5e842b070 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -23,10 +23,6 @@ using namespace std;
#include "modules.h"
#include "inspircd.h"
-
-
-extern userrec* fd_ref_table[MAX_DESCRIPTORS];
-
/* $ModDesc: Provides support for RFC 1413 ident lookups */
// Version 1.5.0.0 - Updated to use InspSocket, faster and neater.
@@ -53,7 +49,7 @@ class RFC1413 : public InspSocket
{
// When we timeout, the connection failed within the allowed timeframe,
// so we just display a notice, and tidy off the ident_data.
- if (u && (fd_ref_table[ufd] == u))
+ if (u && (Instance->fd_ref_table[ufd] == u))
{
u->Shrink("ident_data");
u->WriteServ("NOTICE "+std::string(u->nick)+" :*** Could not find your ident, using "+std::string(u->ident)+" instead.");
@@ -84,7 +80,7 @@ class RFC1413 : public InspSocket
*j = '\0'; // truncate at invalid chars
if (*section)
{
- if (u && (fd_ref_table[ufd] == u))
+ if (u && (Instance->fd_ref_table[ufd] == u))
{
if (this->Instance->IsIdent(section))
{
@@ -125,7 +121,7 @@ class RFC1413 : public InspSocket
// descriptor that they were when the lookup began.
//
// Fixes issue reported by webs, 7 Jun 2006
- if (u && (fd_ref_table[ufd] == u))
+ if (u && (Instance->fd_ref_table[ufd] == u))
{
u->Shrink("ident_data");
}
@@ -133,7 +129,7 @@ class RFC1413 : public InspSocket
virtual void OnError(InspSocketError e)
{
- if (u && (fd_ref_table[ufd] == u))
+ if (u && (Instance->fd_ref_table[ufd] == u))
{
u->Shrink("ident_data");
}
@@ -141,7 +137,7 @@ class RFC1413 : public InspSocket
virtual bool OnConnected()
{
- if (u && (fd_ref_table[ufd] == u))
+ if (u && (Instance->fd_ref_table[ufd] == u))
{
uslen = sizeof(sock_us);
themlen = sizeof(sock_them);