diff options
| -rw-r--r-- | bot.pl | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||
