mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-25 13:29:29 +01:00
urban: add + and - in front of thumbs up/down counts
This commit is contained in:
parent
08ac91f11b
commit
4fa8a88118
@ -79,7 +79,7 @@ sub show_definition {
|
||||
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'};
|
||||
}
|
||||
|
||||
@ -101,9 +101,7 @@ if (defined $show_all or defined $match) {
|
||||
|
||||
if ($@) {
|
||||
my $err = $@;
|
||||
|
||||
$err =~ s/; marked by <-- HERE.*/: $match/;
|
||||
|
||||
print "Oops, $err\n";
|
||||
exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user