- user->WriteServ("439 %s :This server has anti-spambot mechanisms enabled.", user->nick);
- user->WriteServ("931 %s :Malicious bots, spammers, and other automated systems of dubious origin are NOT welcome here.", user->nick);
+ if (command == "NOTICE" && !validated && parameters.size() > 1 && user->GetExt("antibear_timewait"))
+ {
+ if (!strncmp(parameters[1].c_str(), "\1TIME Mon May 01 18:54:20 2006", 30))
+ {
+ ZLine* zl = new ZLine(ServerInstance, ServerInstance->Time(), 86400, ServerInstance->Config->ServerName,
+ "Unless you're stuck in a time warp, you appear to be a bear bot!", user->GetIPString());
+ if (ServerInstance->XLines->AddLine(zl,NULL))
+ {
+ ServerInstance->XLines->ApplyLines();
+ }
+ else
+ delete zl;
+
+ return 1;
+ }
+
+ user->Shrink("antibear_timewait");
+ // Block the command, so the user doesn't receive a no such nick notice
+ return 1;
+ }
+