diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-29 00:23:18 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-29 00:23:18 +0000 |
commit | 7fc9b4f943c944cc54be86b4228c74d85f5336c3 (patch) | |
tree | 280ac5e2ce140f41518789e6c17171b1b8559bac /src/nickalias.cpp | |
parent | 3d367e9bdef526c8a7164621b440e8c5ca2d5bde (diff) |
Forward port of r2918
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2919 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickalias.cpp')
-rw-r--r-- | src/nickalias.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nickalias.cpp b/src/nickalias.cpp index 74883ff06..edb717133 100644 --- a/src/nickalias.cpp +++ b/src/nickalias.cpp @@ -20,7 +20,13 @@ NickRequest::~NickRequest() { FOREACH_MOD(I_OnDelNickRequest, OnDelNickRequest(this)); - nrlists[HASH(this->nick)] = this->next; + if (this->next) + this->next->prev = this->prev; + if (this->prev) + this->prev->next = this->next; + else + nrlists[HASH(this->nick)] = this->next; + if (this->nick) delete [] this->nick; if (this->email) |