diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-08 12:43:07 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-08 12:43:07 +0000 |
commit | 55e822ce85f88b5a8919cd9cc305462dd03c99a3 (patch) | |
tree | 59cd17b22a3653a4b38cfa724bdd7fd3d1809de5 /src/modules | |
parent | 18afeadae4c6520388777fbd3d371402b5aeae9f (diff) |
Stupid, retarded, idiotic bug here where any PONG after the first one gets you kicked. Never picked it up cause with Xchat's lag meter the server never actually PINGed me :"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3550 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_conn_waitpong.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index a97e7f72c..83958ee2d 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -82,16 +82,20 @@ class ModuleWaitPong : public Module { char* pingrpl = user->GetExt("waitpong_pingstr"); - if(pingrpl && (strcmp(pingrpl, parameters[0]) == 0)) - { - delete pingrpl; - user->Shrink("waitpong_pingstr"); - return 1; - } - else if(killonbadreply) + if(pingrpl) { - Srv->QuitUser(user, "Incorrect ping reply for registration"); - return 1; + if(strcmp(pingrpl, parameters[0]) == 0) + { + delete pingrpl; + user->Shrink("waitpong_pingstr"); + return 1; + } + else + { + if(killonbadreply) + Srv->QuitUser(user, "Incorrect ping reply for registration"); + return 1; + } } } |