]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
When a users nick is overruled, remove their nickname-sent bit from userrec::register...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 19 Feb 2007 09:23:59 +0000 (09:23 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 19 Feb 2007 09:23:59 +0000 (09:23 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6600 e03df62e-2008-0410-955e-edbf42e46eb7

src/cmd_nick.cpp

index 1020ef95dca3e398a2252916e990084c5914efa3..3d74e591a33275461b97d6961919f69110b7a1b3 100644 (file)
@@ -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
                        {