From 67b09fde7b19fbf63b419b7ee42cc4be910ddcf1 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 28 Aug 2007 13:24:11 +0000 Subject: Convert m_devoice to use global fake client, rather than rolling its own git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7940 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_devoice.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index 64c341ad6..f2c47cc9a 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -42,10 +42,7 @@ class cmd_devoice : public command_t modes[1] = "-v"; modes[2] = user->nick; - userrec* n = new userrec(ServerInstance); - n->SetFd(FD_MAGIC_NUMBER); - ServerInstance->SendMode(modes,3,n); - delete n; + ServerInstance->SendMode(modes, 3, ServerInstance->FakeClient); /* route it -- SendMode doesn't distribute over the whole network */ return CMD_SUCCESS; -- cgit v1.2.3