diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-27 22:22:24 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-27 22:22:24 +0000 |
commit | 924326b4b8e28089991cdf52111c982a8dc4657c (patch) | |
tree | e5278ac4aa48fcab9f35c6dce91a275d5f3225b5 | |
parent | faa007d405c8915cf1cf6c511eaecf2874c2c2f3 (diff) |
Fix to allow +q/-q etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4559 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_samode.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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"); |