3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 07:19:23 +01:00

urban: add + and - in front of thumbs up/down counts

This commit is contained in:
Pragmatic Software 2017-05-14 05:45:50 -07:00
parent 08ac91f11b
commit 4fa8a88118

View File

@ -79,7 +79,7 @@ sub show_definition {
print "$num/$num_entries: "; print "$num/$num_entries: ";
} }
print "($entry->{'thumbs_up'}/$entry->{'thumbs_down'}) $entry->{'definition'}\n"; print "(+$entry->{'thumbs_up'}/-$entry->{'thumbs_down'}) $entry->{'definition'}\n";
print "$entry->{'example'}\n" if $entry->{'example'}; print "$entry->{'example'}\n" if $entry->{'example'};
} }
@ -101,9 +101,7 @@ if (defined $show_all or defined $match) {
if ($@) { if ($@) {
my $err = $@; my $err = $@;
$err =~ s/; marked by <-- HERE.*/: $match/; $err =~ s/; marked by <-- HERE.*/: $match/;
print "Oops, $err\n"; print "Oops, $err\n";
exit; exit;
} }