X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_conn_waitpong.cpp;h=1c263212572f2bd1fbed4814ce8b3c8e1e53c3e8;hb=7c197db72eab03321e4f3e847054e13126520504;hp=d7a4b833a02daa9349d64b5f705557a01e2202f9;hpb=ad8705d3f051e98b24ba404fcdd888acd30e13db;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index d7a4b833a..1c2632125 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -81,37 +81,30 @@ class ModuleWaitPong : public Module { if(command == "PONG") { - ServerInstance->Log(DEBUG,"PONG command"); char* pingrpl; user->GetExt(extenstr, pingrpl); if(pingrpl) { - ServerInstance->Log(DEBUG,"PONG command - has extend"); if(strcmp(pingrpl, parameters[0]) == 0) { - ServerInstance->Log(DEBUG,"PONG command - pong matches ping "); DELETE(pingrpl); user->Shrink(extenstr); return 1; } else { - ServerInstance->Log(DEBUG,"PONG command - pong doesnt match ping"); if(killonbadreply) userrec::QuitUser(ServerInstance, user, "Incorrect ping reply for registration"); return 1; } } } - - ServerInstance->Log(DEBUG,"PONG command - fall through"); return 0; } virtual bool OnCheckReady(userrec* user) { - ServerInstance->Log(DEBUG,"PONG command - oncheckready"); char* pingrpl; return (!user->GetExt(extenstr, pingrpl)); }