From 77519acd4a7806fc12d6ce95e46c1ecce79cc831 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 25 Jul 2005 05:24:01 +0000 Subject: baby bug --- bot.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.pl b/bot.pl index 267c107..97394b3 100644 --- a/bot.pl +++ b/bot.pl @@ -176,7 +176,7 @@ sub irc_pub_msg{ } if( $nick ne $current_nick ) { - my $sth = $dbh->do( "UPDATE users SET lines = lines + 1, words = words + $numwords + 1, isaway = false WHERE nick = ?" ); + my $sth = $dbh->prepare( "UPDATE users SET lines = lines + 1, words = words + $numwords + 1, isaway = false WHERE nick = ?" ); $sth->execute( $nick ); } -- cgit v1.2.3