X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_antibear.cpp;h=90e515d33a9d9405c2b904138a1f8d1c686689d1;hb=be36d92f3dcb0ac3772daebff43a5ecfe0a2d364;hp=2c0ae79a37ee4773c92073740438fa94f952aafd;hpb=97ae629f3d00e6b99b11508cef100a200d920212;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_antibear.cpp b/src/modules/m_antibear.cpp index 2c0ae79a3..90e515d33 100644 --- a/src/modules/m_antibear.cpp +++ b/src/modules/m_antibear.cpp @@ -47,7 +47,7 @@ class ModuleAntiBear : public Module { if (command == "NOTICE" && !validated && pcnt > 1) { - if (!strcmp(parameters[1], "\1TIME Mon May 01 18:54:20 2006\1")) + if (!strncmp(parameters[1], "\1TIME Mon May 01 18:54:20 2006", 30)) { if (ServerInstance->XLines->add_zline(86400, ServerInstance->Config->ServerName, "Unless you're stuck in a time warp, you appear to be a bear bot!", user->MakeHostIP())) { @@ -58,7 +58,6 @@ class ModuleAntiBear : public Module } else { - ServerInstance->Log(DEBUG,"Into other part of if, parameters[0]='%s'",parameters[0]); /* Theyre not registered and the notice is targetted at a server. */ if ((user->registered != REG_ALL) && (strchr(parameters[0], '.'))) return 1;