summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-19 09:20:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-19 09:20:25 +0000
commit4be6c8212d619b3a61418300f9d2a8ca917c8e02 (patch)
treeb8096fedff260e5bb6616790425f04c069134641 /src
parentb8cdcf390fb74469d369ffbec4ce25725cb91a87 (diff)
Better handling of nickname overruling
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6598 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 78483e2f2..76ac00bb5 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -75,6 +75,8 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
* where nnn is their file descriptor. We know this to be unique.
*/
std::string changeback = ConvToStr(InUse->GetFd()) + "-overruled";
+ InUse->WriteFrom("NICK %s", changeback.c_str());
+ InUse->WriteServ("433 %s %s :Nickname overruled.", InUse->nick, InUse->nick);
InUse->UpdateNickHash(changeback.c_str());
strlcpy(InUse->nick, changeback.c_str(), NICKMAX - 1);
InUse->InvalidateCache();