mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
urban module: Always number of entries
This commit is contained in:
parent
05f27d0c8f
commit
f54587ef0a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user