]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/RootWarn.pl
- added support of ircTextCounters - works! thanks to #perl@OPN.
[infobot.git] / src / Modules / RootWarn.pl
index 7a87214675a63c8ae9dd2950be1d6273da52a11f..1cdae16abe68fbdd14126e2357162d3b85fb4cd1 100644 (file)
@@ -9,7 +9,7 @@ use strict;
 
 sub rootWarn {
     my ($nick,$user,$host,$chan) = @_;
-    my $attempt = &dbGet("rootwarn", "nick", lc($nick), "attempt") || 0;
+    my $attempt = &dbGet("rootwarn", "attempt", "nick='.lc($nick)."'") || 0;
     my $warnmode       = &getChanConf("rootWarnMode");
 
     if ($attempt == 0) {       # first timer.