diff options
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) |