git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1015
c11ca15a-4712-0410-83d8-
924469b57eb5
}
# TODO: show top 3 with percentages?
}
# 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";
}
if ($count) {
$reply .= ". \002$count\002 has said the most with a total of \002$new{$count}\002 messages";
}