diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-16 13:23:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-16 13:23:27 +0000 |
commit | 1fd1b98ced9474d3358dc10dfc18580aa5351ed7 (patch) | |
tree | a04132de99c16afc2d99ab4d111d6dfe554519df | |
parent | b053eb1835292793884636b066842c3369e8b641 (diff) |
if (dl) { do_something() } else { delete dl; } ???
no no no, you cannot delete null pointers! :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5477 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_dccallow.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 767607c6d..13a8884d8 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -405,8 +405,6 @@ class ModuleDCCAllow : public Module } else { - DELETE(dl); - u->Shrink("dccallow_list"); RemoveFromUserlist(u); ServerInstance->Log(DEBUG, "m_dccallow.so: UH OH! Couldn't get DCCALLOW list for %s", u->nick); } @@ -440,8 +438,6 @@ class ModuleDCCAllow : public Module } else { - DELETE(dl); - u->Shrink("dccallow_list"); RemoveFromUserlist(u); } } |