From f44ff8cf3c1d661316c8801b1a75190cf6462218 Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 15 Feb 2009 08:57:16 +0000 Subject: Also Extend user with FORCENick when calling the actual command handler for NICK in User::ForceNickChange to avoid serverwide desyncs. Fixes bug #733 reported by SnoFox. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11109 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/users.cpp b/src/users.cpp index 7ce7ea673..0324fad7f 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1057,7 +1057,9 @@ bool User::ForceNickChange(const char* newnick) std::vector parameters; nickhandler->HandleInternal(1, dummy); parameters.push_back(newnick); + this->Extend("NICKForced", "Enabled"); bool result = (ServerInstance->Parser->CallHandler("NICK", parameters, this) == CMD_SUCCESS); + this->Shrink("NICKForced"); nickhandler->HandleInternal(0, dummy); return result; } -- cgit v1.2.3