X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ident.cpp;h=669e9edbeb6f6f568d35d67d0e6ddf757f0c52a3;hb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;hp=6c2f0cf525133974e1351ca8b225af0b369f1223;hpb=033cf7bfdbe73dbd446efc7b08f58bf6c7262bf6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 6c2f0cf52..669e9edbe 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -212,16 +212,7 @@ class ModuleIdent : public Module */ user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Looking up your ident..."); RFC1413* ident = new RFC1413(ServerInstance, user, IdentTimeout); - if (ident->GetState() != I_ERROR) - { - user->Extend("ident_data", (char*)ident); - ServerInstance->AddSocket(ident); - } - else - { - user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Could not find your ident, using "+std::string(user->ident)+" instead."); - DELETE(ident); - } + user->Extend("ident_data", (char*)ident); } virtual bool OnCheckReady(userrec* user) @@ -232,14 +223,6 @@ class ModuleIdent : public Module * have an ident field any more. */ RFC1413* ident; - if (user->GetExt("ident_data", ident)) - { - if (ident->timeout_end > ServerInstance->Time()) - { - ident->u = NULL; - ServerInstance->RemoveSocket(ident); - } - } return (!user->GetExt("ident_data", ident)); } @@ -256,7 +239,6 @@ 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->RemoveSocket(ident); } } } @@ -275,7 +257,6 @@ class ModuleIdent : public Module if (user->GetExt("ident_data", ident)) { ident->u = NULL; - ServerInstance->RemoveSocket(ident); } }