From: timriker Date: Tue, 27 Jul 2004 21:25:01 +0000 (+0000) Subject: chaninfo #botpark - fix sort to get whosaid the most X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a1e249ba4cb872e2331feb183ab5785afe3cc424;p=infobot.git chaninfo #botpark - fix sort to get whosaid the most git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1015 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/UserExtra.pl b/blootbot/src/UserExtra.pl index ba80639..6ae80de 100644 --- a/blootbot/src/UserExtra.pl +++ b/blootbot/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"; }