From d3a50da5c09fd7f726ebe0b55bc79bbf8e5783c0 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 19 Feb 2007 09:23:59 +0000 Subject: When a users nick is overruled, remove their nickname-sent bit from userrec::registered so they must send a nick again. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6600 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_nick.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index 1020ef95d..3d74e591a 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -80,6 +80,8 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user) InUse->UpdateNickHash(changeback.c_str()); strlcpy(InUse->nick, changeback.c_str(), NICKMAX - 1); InUse->InvalidateCache(); + /* Take away their nickname-sent state forcing them to send a nick again */ + InUse->registered &= ~REG_NICK; } else { -- cgit v1.2.3