]> git.donarmstrong.com Git - infobot.git/commitdiff
always msg rootwarn
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 4 Sep 2003 19:09:54 +0000 (19:09 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 4 Sep 2003 19:09:54 +0000 (19:09 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@827 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/RootWarn.pl

index a0c7bc5fe386536340c6eec59fd7a1571b202fca..647cffe0238d2c7bfd32d478e0a4d18935bd1330 100644 (file)
@@ -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.");
        }
     }