From 78e3fd0f241bddabddfdbc22f2b7cf41743bada0 Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 4 Sep 2003 17:07:01 +0000 Subject: [PATCH] rootwarn is borken git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@822 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/RootWarn.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Modules/RootWarn.pl b/src/Modules/RootWarn.pl index ffd7ee2..a0c7bc5 100644 --- a/src/Modules/RootWarn.pl +++ b/src/Modules/RootWarn.pl @@ -21,11 +21,11 @@ sub rootWarn { &status("rootwarn: Detected root user; notifying user"); } else { &status("rootwarn: Detected root user; notifying nick and channel."); - &msg($chan, "ROO".("O" x int(rand 68))."T has landed!"); + &msg($chan, "ROO".("O" x int(rand 8))."T has landed!"); } if ($_ = &getFactoid("root")) { - &msg($nick, "root is $_"); + &msg($nick, "rootwarn: $attempt : $_"); } else { &status("root needs to be defined in database."); } @@ -33,13 +33,12 @@ sub rootWarn { } elsif ($attempt < 2) { # 2nd/3rd time occurrance. &status("RootWarn: not first time root user; msg'ing $nick."); if ($_ = &getFactoid("root again")) { - &msg($nick, $_); + &msg($nick, "rootwarn: $attempt : $_"); } else { &status("root again needs to be defined in database."); } } else { # >3rd time occurrance. - # disable this for the time being. if (0 and $warnmode =~ /aggressive/i) { if ($channels{$chan}{'o'}{$ident}) { -- 2.39.5