summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-19 09:23:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-19 09:23:59 +0000
commitd3a50da5c09fd7f726ebe0b55bc79bbf8e5783c0 (patch)
treedc9a063248b078f4ff1cdc3b7ffd03ead4a73ee3 /src
parente4fea2335a3f64400f91ea07f72624c0f9fe3421 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/cmd_nick.cpp2
1 files changed, 2 insertions, 0 deletions
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
{