diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-28 13:24:11 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-28 13:24:11 +0000 |
commit | 67b09fde7b19fbf63b419b7ee42cc4be910ddcf1 (patch) | |
tree | 5caeaad2adbe41f62a2149be2d15600ab74ea558 /src/modules/m_devoice.cpp | |
parent | d5d692037ea79c2aea6ff61e81c34ae990ce12d4 (diff) |
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
Diffstat (limited to 'src/modules/m_devoice.cpp')
-rw-r--r-- | src/modules/m_devoice.cpp | 5 |
1 files changed, 1 insertions, 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; |