From 565f4b080bfdca04274ecad29007fff8a7a65035 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 18 May 2020 00:04:12 -0700 Subject: [PATCH] NickList: improve `nicklist` usage message --- PBot/NickList.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/NickList.pm b/PBot/NickList.pm index b1386fe6..9434c049 100644 --- a/PBot/NickList.pm +++ b/PBot/NickList.pm @@ -50,7 +50,7 @@ sub cmd_nicklist { my ($self, $context) = @_; my $nicklist; - my $usage = "Usage: nicklist ( | ) [-sort=nick|host|spoken|join] [-hostmask] [-join]; -hostmask to show hostmasks instead of nicks; -join to include join time"; + my $usage = "Usage: nicklist ( | ) [-sort ] [-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] !~ /^#/) {