]> 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 eb59714f7d818198fca2e6cdcaadf2cb8997e432..f6a29af35f68bd64056a85896c25950e79b6c496 100644 (file)
@@ -43,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);
        }
 }