From 924326b4b8e28089991cdf52111c982a8dc4657c Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 27 Jul 2006 22:22:24 +0000 Subject: Fix to allow +q/-q etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4559 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_samode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 905eed0c8..dc23cc990 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -53,7 +53,10 @@ class cmd_samode : public command_t */ std::string result; Srv->Log(DEBUG,"SAMODE: Being handled"); - Srv->SendMode(parameters,pcnt,user); + userrec* n = new userrec(); + n->fd = FD_MAGIC_NUMBER; + Srv->SendMode(parameters,pcnt,n); + delete n; Srv->Log(DEBUG,"SAMODE: Modechange handled"); result = std::string(user->nick); result.append(" used SAMODE"); -- cgit v1.2.3