summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 7321d11c4..421183740 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1018,14 +1018,8 @@ void ModeHandler::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, 2, n);
-
- delete n;
+ ServerInstance->SendMode(parameters, 2, ServerInstance->FakeClient);
}
}