summaryrefslogtreecommitdiff
path: root/src/modules/m_saquit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_saquit.cpp')
-rw-r--r--src/modules/m_saquit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp
index 3c9d95189..dd02d4e41 100644
--- a/src/modules/m_saquit.cpp
+++ b/src/modules/m_saquit.cpp
@@ -36,6 +36,7 @@ using namespace std;
/* $ModDesc: Provides support for an SAQUIT command, exits user with a reason */
static Server *Srv;
+extern InspIRCd* ServerInstance;
class cmd_saquit : public command_t
{
@@ -64,7 +65,7 @@ class cmd_saquit : public command_t
line = line + std::string(parameters[pcnt-1]);
Srv->SendOpers(std::string(user->nick)+" used SAQUIT to make "+std::string(dest->nick)+" quit with a reason of "+line);
- userrec::QuitUser(dest, line);
+ userrec::QuitUser(ServerInstance, dest, line);
}
}
};