diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-27 17:18:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-27 17:18:10 +0000 |
commit | 3d9969c77286f85243002dd7f6e74f0bb74f34fa (patch) | |
tree | 36180c68c27676d0ce5655f54ac30a5d230027c2 | |
parent | ea4a9c57ed61b7d012023a9d7da75463f1f5ed94 (diff) |
Fixed kill-on-bad-ping-reply option
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2939 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_conn_waitpong.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index 5d4a9e94c..ddbea55d0 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -62,7 +62,7 @@ class ModuleWaitPong : public Module void Implements(char* List) { - List[I_OnUserRegister] = List[I_OnCheckReady] = List[I_OnUserDisconnect] = List[I_OnPreCommand] = List[I_OnRehash] = 1; + List[I_OnUserRegister] = List[I_OnCheckReady] = List[I_OnPreCommand] = List[I_OnRehash] = 1; } virtual void OnUserRegister(userrec* user) @@ -93,6 +93,7 @@ class ModuleWaitPong : public Module else if(killonbadreply) { Srv->QuitUser(user, "Incorrect ping reply for registration"); + return 1; } } |