From be2d83be3e0f1d9cbc64066530cbda5f8411a032 Mon Sep 17 00:00:00 2001
From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Tue, 27 Jul 2004 21:25:01 +0000
Subject: [PATCH] chaninfo #botpark - fix sort to get whosaid the most

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1015 c11ca15a-4712-0410-83d8-924469b57eb5
---
 src/UserExtra.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/UserExtra.pl b/src/UserExtra.pl
index ba80639..6ae80de 100644
--- a/src/UserExtra.pl
+++ b/src/UserExtra.pl
@@ -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";
     }
-- 
2.39.5