mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 20:09:43 +01:00
NickList: improve nicklist
usage message
This commit is contained in:
parent
46cad2050c
commit
565f4b080b
@ -50,7 +50,7 @@ sub cmd_nicklist {
|
||||
my ($self, $context) = @_;
|
||||
|
||||
my $nicklist;
|
||||
my $usage = "Usage: nicklist (<channel [nick]> | <nick>) [-sort=nick|host|spoken|join] [-hostmask] [-join]; -hostmask to show hostmasks instead of nicks; -join to include join time";
|
||||
my $usage = "Usage: nicklist (<channel [nick]> | <nick>) [-sort <by>] [-hostmask] [-join]; -hostmask to show hostmasks instead of nicks; -join to include join time";
|
||||
|
||||
my $getopt_error;
|
||||
local $SIG{__WARN__} = sub {
|
||||
@ -115,7 +115,7 @@ sub cmd_nicklist {
|
||||
}
|
||||
|
||||
if (not exists $sort{$sort_method}) {
|
||||
return "Invalid sort method '$sort_method'; valid methods are (you may prefix with a - to invert the sort direction): " . join(', ', sort keys %sort);
|
||||
return "Invalid sort method '$sort_method'; valid methods are: " . join(', ', sort keys %sort) . "; prefix with - to invert sort direction.";
|
||||
}
|
||||
|
||||
if ($args[0] !~ /^#/) {
|
||||
|
Loading…
Reference in New Issue
Block a user