X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ident.cpp;h=dc59adcead13a766a2cb569211724650806b69ca;hb=2e52ff280dca14d1598b84fab7a8c2e93fa30910;hp=707193fc6c938456a7075a84847025c4d63821c1;hpb=7f9c6c5118261eac40d9bae22ac2c0ede670512d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 707193fc6..dc59adcea 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -208,7 +208,7 @@ class ModuleIdent : public Module ReadSettings(); } - virtual void OnUserRegister(userrec* user) + virtual int OnUserRegister(userrec* user) { /* * when the new user connects, before they authenticate with USER/NICK/PASS, we do @@ -231,6 +231,7 @@ class ModuleIdent : public Module strlcpy(user->ident,newident,IDENTMAX); delete ident; } + return 0; } virtual bool OnCheckReady(userrec* user) @@ -257,6 +258,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 +278,8 @@ class ModuleIdent : public Module if (user->GetExt("ident_data", ident)) { ident->u = NULL; + ServerInstance->SE->DelFd(ident); + delete ident; } }