summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.pl2
1 files changed, 1 insertions, 1 deletions
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{
176 } 176 }
177 177
178 if( $nick ne $current_nick ) { 178 if( $nick ne $current_nick ) {
179 my $sth = $dbh->do( "UPDATE users SET lines = lines + 1, words = words + $numwords + 1, isaway = false WHERE nick = ?" ); 179 my $sth = $dbh->prepare( "UPDATE users SET lines = lines + 1, words = words + $numwords + 1, isaway = false WHERE nick = ?" );
180 $sth->execute( $nick ); 180 $sth->execute( $nick );
181 } 181 }
182 182