From: timriker Date: Thu, 4 Sep 2003 19:09:54 +0000 (+0000) Subject: always msg rootwarn X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0721c8aef0ae9b262fe75a87f5433c9af2f070ca;p=infobot.git always msg rootwarn git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@827 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/RootWarn.pl b/src/Modules/RootWarn.pl index a0c7bc5..647cffe 100644 --- a/src/Modules/RootWarn.pl +++ b/src/Modules/RootWarn.pl @@ -31,8 +31,8 @@ sub rootWarn { } } elsif ($attempt < 2) { # 2nd/3rd time occurrance. - &status("RootWarn: not first time root user; msg'ing $nick."); if ($_ = &getFactoid("root again")) { + &status("RootWarn: not first time root user; msg'ing $nick."); &msg($nick, "rootwarn: $attempt : $_"); } else { &status("root again needs to be defined in database."); @@ -46,6 +46,11 @@ sub rootWarn { rawout("MODE $chan +b *!root\@$host"); # ban &kick($chan,$nick,"bye bye"); } + } elsif ($_ = &getFactoid("root again")) { + &status("RootWarn: $attempt times; msg'ing $nick."); + &msg($nick, "rootwarn: $attempt : $_"); + } else { + &status("root again needs to be defined in database."); } }