[SimBot-commits] CVS: simbot/plugins sqlite-logger.pl,1.61,1.62
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-08-17 12:34:04
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3590/plugins Modified Files: sqlite-logger.pl Log Message: the nick list is now sorted. Index: sqlite-logger.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/sqlite-logger.pl,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -p -r1.61 -r1.62 --- sqlite-logger.pl 17 Aug 2005 12:29:08 -0000 1.61 +++ sqlite-logger.pl 17 Aug 2005 12:33:54 -0000 1.62 @@ -990,13 +990,14 @@ sub web_stats { } my @nick_list; - foreach my $cur_key (sort keys %nick_counts) { + foreach my $cur_key (keys %nick_counts) { my %hash; $hash{'link'} = "/stats?nick_id=${cur_key}"; $hash{'nick'} = &get_nickchan_name($cur_key); $hash{'line_count'} = $nick_counts{$cur_key}; push(@nick_list, \%hash); } + @nick_list = sort { lc $a->{'nick'} cmp lc $b->{'nick'} } @nick_list; my @hour_list; for (my $x=0; $x <= 23; $x++) { |