3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

urban module: Always number of entries

This commit is contained in:
Pragmatic Software 2017-05-13 23:57:20 -07:00
parent 05f27d0c8f
commit f54587ef0a

View File

@ -56,11 +56,13 @@ if ($num_entries == 0) {
print "$args: no definition found.\n";
exit;
} else {
=cut
if ($num_entries > 1 and not defined $entry) {
print "$num_entries entries:\n";
if ($num_entries > 1) {
if (defined $entry) {
print "$entry/$num_entries:\n";
} else {
print "1/$num_entries:\n";
}
}
=cut
}
if (defined $entry) {