diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 90489ce62..c07682bcf 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -891,14 +891,8 @@ void ModeHandler::RemoveMode(userrec* user) if (user->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->Parser->CallHandler("MODE", parameters, 2, user); } } |