mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-02 20:57:28 +02: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";
|
print "$args: no definition found.\n";
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
=cut
|
if ($num_entries > 1) {
|
||||||
if ($num_entries > 1 and not defined $entry) {
|
if (defined $entry) {
|
||||||
print "$num_entries entries:\n";
|
print "$entry/$num_entries:\n";
|
||||||
|
} else {
|
||||||
|
print "1/$num_entries:\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
=cut
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $entry) {
|
if (defined $entry) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user