[SimBot-commits] CVS: simbot/plugins sqlite-logger.pl,1.56,1.57
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-08-11 15:47:04
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24750/plugins Modified Files: sqlite-logger.pl Log Message: Let's treat these numbers as, well, numbers. Index: sqlite-logger.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/sqlite-logger.pl,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -p -r1.56 -r1.57 --- sqlite-logger.pl 11 Aug 2005 15:39:29 -0000 1.56 +++ sqlite-logger.pl 11 Aug 2005 15:46:56 -0000 1.57 @@ -965,11 +965,11 @@ sub linkify { } elsif ($code == 3) { $line =~ m/(\d{1,2})?(,(\d{1,2}))?/; if ($2) { - $color = $1 if $1; + $color = int $1 if $1; $bgcolor = $3; $line =~ s/$1$2//; } elsif ($1) { - $color = $1; + $color = int $1; $line =~ s/$1//; } else { $color = -1; |