From 7fc9b4f943c944cc54be86b4228c74d85f5336c3 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 29 Apr 2010 00:23:18 +0000 Subject: [PATCH] Forward port of r2918 git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2919 5417fbe8-f217-4b02-8779-1006273d7864 --- src/nickalias.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)