summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_devoice.cpp5
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;