From 4be6c8212d619b3a61418300f9d2a8ca917c8e02 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 19 Feb 2007 09:20:25 +0000 Subject: Better handling of nickname overruling git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6598 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 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(); -- cgit v1.2.3