From 390fa24e97ecc6b547ba599c6a3e1483c6522ab7 Mon Sep 17 00:00:00 2001 From: peavey Date: Thu, 8 Feb 2007 02:49:23 +0000 Subject: Try without deletes that it done anyway on close of InspSocket's socket. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6548 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 338535ad8..a2574a19f 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -185,7 +185,7 @@ class ModuleIdent : public Module { ConfigReader* Conf; - + int IdentTimeout; public: @@ -201,7 +201,7 @@ class ModuleIdent : public Module ModuleIdent(InspIRCd* Me) : Module::Module(Me) { - + ReadSettings(); } @@ -236,7 +236,7 @@ class ModuleIdent : public Module strcpy(newident,"~"); strlcat(newident,user->ident,IDENTMAX); strlcpy(user->ident,newident,IDENTMAX); - delete ident; + //delete ident; } return 0; } @@ -266,7 +266,7 @@ class ModuleIdent : public Module // to NULL and check it so that we dont write users who have gone away. ident->u = NULL; ServerInstance->SE->DelFd(ident); - delete ident; + //delete ident; } } } @@ -286,19 +286,19 @@ class ModuleIdent : public Module { ident->u = NULL; ServerInstance->SE->DelFd(ident); - delete ident; + //delete ident; } } - + virtual ~ModuleIdent() { } - + virtual Version GetVersion() { return Version(1,1,0,0,VF_VENDOR,API_VERSION); } - + }; class ModuleIdentFactory : public ModuleFactory @@ -307,16 +307,16 @@ class ModuleIdentFactory : public ModuleFactory ModuleIdentFactory() { } - + ~ModuleIdentFactory() { } - + virtual Module * CreateModule(InspIRCd* Me) { return new ModuleIdent(Me); } - + }; -- cgit v1.2.3