summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 13:40:21 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-28 13:40:21 +0000
commit2829ce8112ead4808969808b1f3ae216aae55d05 (patch)
tree866a78170cc3d53dfa0db51f6f901b372e049ecd /src/mode.cpp
parent67b09fde7b19fbf63b419b7ee42cc4be910ddcf1 (diff)
Remove some fake client stuff, make it use the global record
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7941 e03df62e-2008-0410-955e-edbf42e46eb7
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);
}
}