summaryrefslogtreecommitdiff
path: root/src/modules/m_conn_waitpong.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_conn_waitpong.cpp')
-rw-r--r--src/modules/m_conn_waitpong.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp
index 6021d7058..558e98696 100644
--- a/src/modules/m_conn_waitpong.cpp
+++ b/src/modules/m_conn_waitpong.cpp
@@ -9,6 +9,8 @@
/* $ModDesc: Forces connecting clients to send a PONG message back to the server before they can complete their connection */
+extern InspIRCd* ServerInstance;
+
char* RandString(unsigned int length)
{
unsigned char* tmp = new unsigned char[(length/4)*3];
@@ -95,7 +97,7 @@ class ModuleWaitPong : public Module
else
{
if(killonbadreply)
- userrec::QuitUser(user, "Incorrect ping reply for registration");
+ userrec::QuitUser(ServerInstance, user, "Incorrect ping reply for registration");
return 1;
}
}