+ if (command == "NOTICE" && !validated && pcnt > 1 && user->GetExt("antibear_timewait"))
+ {
+ if (!strncmp(parameters[1], "\1TIME Mon May 01 18:54:20 2006", 30))
+ {
+ ServerInstance->XLines->AddZLine(86400, ServerInstance->Config->ServerName, "Unless you're stuck in a time warp, you appear to be a bear bot!", user->GetIPString());
+ // XXX move events into the damn XLineManager stuff
+ FOREACH_MOD(I_OnAddGLine,OnAddZLine(86400, NULL, "Unless you're stuck in a time warp, you appear to be a bear bot!", user->MakeHostIP()));
+ ServerInstance->XLines->ApplyLines();
+ return 1;
+ }
+
+ user->Shrink("antibear_timewait");
+ // Block the command, so the user doesn't receive a no such nick notice
+ return 1;
+ }
+
+ return 0;