summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-08 12:43:07 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-08 12:43:07 +0000
commit55e822ce85f88b5a8919cd9cc305462dd03c99a3 (patch)
tree59cd17b22a3653a4b38cfa724bdd7fd3d1809de5 /src
parent18afeadae4c6520388777fbd3d371402b5aeae9f (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')
-rw-r--r--src/modules/m_conn_waitpong.cpp22
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;
+ }
}
}