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