From ba878c4c5c5176c1cc42618aeafa8cc461a887af Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 22 Oct 2006 16:26:04 +0000 Subject: Delete idents when disconnecting? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5525 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 707193fc6..f4ffc0058 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -257,6 +257,8 @@ class ModuleIdent : public Module // a user which has now vanished! To prevent this, set ident::u // to NULL and check it so that we dont write users who have gone away. ident->u = NULL; + ServerInstance->SE->DelFd(ident); + delete ident; } } } @@ -275,6 +277,8 @@ class ModuleIdent : public Module if (user->GetExt("ident_data", ident)) { ident->u = NULL; + ServerInstance->SE->DelFd(ident); + delete ident; } } -- cgit v1.2.3