]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/cmode_k.cpp
If the user's nick is just a case change, the TS is NOT updated (thanks jilles)
[user/henk/code/inspircd.git] / src / modes / cmode_k.cpp
index 5d62a4f89a0b6597bcee2f897708666282d8e5f6..f6a29af35f68bd64056a85896c25950e79b6c496 100644 (file)
@@ -1,3 +1,16 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
 #include "inspircd.h"
 #include "mode.h"
 #include "channels.h"
@@ -30,14 +43,8 @@ void ModeChannelKey::RemoveMode(chanrec* channel)
 
        if (channel->IsModeSet(this->GetModeChar()))
        {
-               userrec* n = new userrec(ServerInstance);
-
                sprintf(moderemove,"-%c",this->GetModeChar());
-               n->SetFd(FD_MAGIC_NUMBER);
-
-               ServerInstance->SendMode(parameters, 3, n);
-
-               delete n;
+               ServerInstance->SendMode(parameters, 3, ServerInstance->FakeClient);
        }
 }