diff options
Diffstat (limited to 'src/modules/m_samode.cpp')
-rw-r--r-- | src/modules/m_samode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 3e6c256a0..012bfed89 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -38,6 +38,7 @@ using namespace std; #include "inspircd.h" static Server *Srv; +extern InspIRCd* ServerInstance; class cmd_samode : public command_t { @@ -55,7 +56,7 @@ class cmd_samode : public command_t */ std::string result; Srv->Log(DEBUG,"SAMODE: Being handled"); - userrec* n = new userrec(); + userrec* n = new userrec(ServerInstance); n->fd = FD_MAGIC_NUMBER; Srv->SendMode(parameters,pcnt,n); delete n; |