]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/RootWarn.pl
- irctextcounters: add percentage to top3
[infobot.git] / src / Modules / RootWarn.pl
index 6944b196583c8215ea37a28bdd3d58e839829895..835c605d47493911c2c6bd7d14aaa7aa915f5573 100644 (file)
@@ -9,7 +9,8 @@
 
 sub rootWarn {
     my ($nick,$user,$host,$chan) = @_;
-    my $attempt = &dbGet("rootwarn", "attempt", "nick='".lc($nick)."'") || 0;
+    my $n      = lc $nick;
+    my $attempt = &dbGet("rootwarn", "attempt", "nick=".&dbQuote($n) ) || 0;
     my $warnmode       = &getChanConf("rootWarnMode");
 
     if ($attempt == 0) {       # first timer.