diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 17:06:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 17:06:09 +0000 |
commit | e84b33e456c6cdca92340475405f746028e919ce (patch) | |
tree | 30727668a2d41cbc4d114b057ce36be661a1e4f7 | |
parent | 2c2b4010bbced084e814f9716f89be33f59953e8 (diff) |
More fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4281 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_ident.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index c415741b2..131c3b117 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -225,8 +225,8 @@ class ModuleIdent : public Module * either due to timeout or due to closing, so, we just hold them until they dont * have an ident field any more. */ - RFC1413* ident = (RFC1413*)user->GetExt("ident_data"); - return (!ident); + RFC1413* ident; + return (!user->GetExt("ident_data", ident)); } virtual void OnCleanup(int target_type, void* item) @@ -234,8 +234,8 @@ class ModuleIdent : public Module if (target_type == TYPE_USER) { userrec* user = (userrec*)item; - RFC1413* ident = (RFC1413*)user->GetExt("ident_data"); - if (ident) + RFC1413* ident; + if (user->GetExt("ident_data", ident)) { // FIX: If the user record is deleted, the socket wont be removed // immediately so there is chance of the socket trying to write to @@ -257,8 +257,8 @@ class ModuleIdent : public Module * who have quit, as class RFC1459 is only loosely bound to userrec* via a pair of pointers * and this would leave at least one of the invalid ;) */ - RFC1413* ident = (RFC1413*)user->GetExt("ident_data"); - if (ident) + RFC1413* ident; + if (user->GetExt("ident_data", ident)) { ident->u = NULL; Srv->RemoveSocket(ident); |