[SimBot-commits] CVS: simbot/plugins sqlite-logger.pl,1.65,1.66
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-08-18 18:56:15
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28109/plugins Modified Files: sqlite-logger.pl Log Message: Only consider SAY and ACTION events for making the statistics graphs and the channel nick list. This should reduce the number of uninteresting stats entries. Index: sqlite-logger.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/sqlite-logger.pl,v retrieving revision 1.65 retrieving revision 1.66 diff -u -d -p -r1.65 -r1.66 --- sqlite-logger.pl 18 Aug 2005 18:38:51 -0000 1.65 +++ sqlite-logger.pl 18 Aug 2005 18:56:08 -0000 1.66 @@ -235,14 +235,16 @@ sub set_seen { my $hour = ( gmtime(time) )[2]; - unless ( - int $update_nick_hour_count_query->execute( - $source_nick_id, $channel_id, $hour - ) - ) - { - $insert_nick_hour_count_query->execute( $source_nick_id, $channel_id, - $hour ); + if($doing =~ m/SAY|ACTION/) { + unless ( + int $update_nick_hour_count_query->execute( + $source_nick_id, $channel_id, $hour + ) + ) + { + $insert_nick_hour_count_query->execute( $source_nick_id, $channel_id, + $hour ); + } } $dbh->commit; } ## end sub set_seen |