]> git.donarmstrong.com Git - infobot.git/commitdiff
chaninfo #botpark - fix sort to get whosaid the most
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 27 Jul 2004 21:25:01 +0000 (21:25 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 27 Jul 2004 21:25:01 +0000 (21:25 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1015 c11ca15a-4712-0410-83d8-924469b57eb5

src/UserExtra.pl

index ba80639d74a073b95a42a8e516f93814db764447..6ae80deeac76f34b90087aac504217a2ba209062 100644 (file)
@@ -167,7 +167,7 @@ sub chaninfo {
     }
 
     # TODO: show top 3 with percentages?
-    my($count) = (sort { $new{$a} <=> $new{$b} } keys %new)[0];
+    my($count) = (sort { $new{$b} <=> $new{$a} } keys %new)[0];
     if ($count) {
        $reply .= ".  \002$count\002 has said the most with a total of \002$new{$count}\002 messages";
     }