diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index 2db8ce75..9df5bfa7 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -160,7 +160,7 @@ sub whitelist { } when ("set") { my ($channel, $mask, $flag, $value) = $self->{pbot}->{interpreter}->split_args($arglist, 4); - return "Usage: whitelist set [flag] [value]" if not defined $channel or not defined $mask; + return "Usage: whitelist set [flag [value]]" if not defined $channel or not defined $mask; if (not exists $self->{whitelist}->{hash}->{lc $channel}) { return "There is no such channel `$channel` in the whitelist."; diff --git a/PBot/AntiSpam.pm b/PBot/AntiSpam.pm index 3895242e..18642a53 100644 --- a/PBot/AntiSpam.pm +++ b/PBot/AntiSpam.pm @@ -97,7 +97,7 @@ sub antispam_cmd { } when ("set") { my ($namespace, $keyword, $flag, $value) = $self->{pbot}->{interpreter}->split_args($arglist, 4); - return "Usage: antispam set [flag] [value]" if not defined $namespace or not defined $keyword; + return "Usage: antispam set [flag [value]]" if not defined $namespace or not defined $keyword; if (not exists $self->{keywords}->{hash}->{lc $namespace}) { return "There is no such namespace `$namespace`."; diff --git a/PBot/ChanOpCommands.pm b/PBot/ChanOpCommands.pm index c4668cb7..5da23e1a 100644 --- a/PBot/ChanOpCommands.pm +++ b/PBot/ChanOpCommands.pm @@ -477,7 +477,7 @@ sub unban_user { } if (not defined $target) { - return "/msg $nick Usage: unban [[channel] [false value to use unban queue]]"; + return "/msg $nick Usage: unban [channel [false value to use unban queue]]"; } $channel = exists $stuff->{admin_channel_override} ? $stuff->{admin_channel_override} : $from if not defined $channel; @@ -608,7 +608,7 @@ sub unmute_user { } if (not defined $target) { - return "/msg $nick Usage: unmute [[channel] [false value to use unban queue]]"; + return "/msg $nick Usage: unmute [channel [false value to use unban queue]]"; } $channel = exists $stuff->{admin_channel_override} ? $stuff->{admin_channel_override} : $from if not defined $channel; diff --git a/PBot/ChanOps.pm b/PBot/ChanOps.pm index 388bbf13..3afc8cd7 100644 --- a/PBot/ChanOps.pm +++ b/PBot/ChanOps.pm @@ -122,7 +122,7 @@ sub perform_op_commands { while (my $command = shift @{ $self->{op_commands}->{$channel} }) { if ($command =~ /^mode (.*?) (.*)/i) { $self->{pbot}->{conn}->mode($1, $2); - $self->{pbot}->{logger}->log(" executing mode [$1] [$2]\n"); + $self->{pbot}->{logger}->log(" executing mode $1 $2\n"); } elsif ($command =~ /^kick (.*?) (.*?) (.*)/i) { $self->{pbot}->{conn}->kick($1, $2, $3) unless $1 =~ /^\Q$botnick\E$/i; $self->{pbot}->{logger}->log(" executing kick on $1 $2 $3\n"); diff --git a/PBot/IgnoreListCommands.pm b/PBot/IgnoreListCommands.pm index 0405e7d8..e19283d5 100644 --- a/PBot/IgnoreListCommands.pm +++ b/PBot/IgnoreListCommands.pm @@ -48,12 +48,12 @@ sub ignore_user { my $self = shift; my ($from, $nick, $user, $host, $arguments, $stuff) = @_; - return "/msg $nick Usage: ignore nick!user\@host [channel] [timeout]" if not defined $arguments; + return "Usage: ignore [channel [timeout]]" if not defined $arguments; my ($target, $channel, $length) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 3); if (not defined $target) { - return "/msg $nick Usage: ignore host [channel] [timeout]"; + return "Usage: ignore [channel [timeout]]"; } if ($target =~ /^list$/i) { @@ -99,7 +99,7 @@ sub unignore_user { my ($target, $channel) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 2); if (not defined $target) { - return "/msg $nick Usage: unignore host [channel]"; + return "Usage: unignore [channel]"; } if (not defined $channel) { diff --git a/PBot/Users.pm b/PBot/Users.pm index bb3ce501..9bbe0584 100644 --- a/PBot/Users.pm +++ b/PBot/Users.pm @@ -347,7 +347,7 @@ sub useradd { $level //= 0; if (not defined $name or not defined $channel or not defined $hostmask) { - return "/msg $nick Usage: useradd [level] [password]"; + return "/msg $nick Usage: useradd [level [password]]"; } $channel = '.*' if $channel !~ /^#/; @@ -392,7 +392,7 @@ sub userset { my ($channel, $hostmask, $key, $value) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 4); if (not defined $hostmask) { - return "Usage: userset [channel] [key] [value]"; + return "Usage: userset [channel] [key [value]]"; } my $admin = $self->find_admin($channel, "$nick!$user\@$host"); diff --git a/Plugins/Spinach.pm b/Plugins/Spinach.pm index c8b0a097..7bf7b456 100644 --- a/Plugins/Spinach.pm +++ b/Plugins/Spinach.pm @@ -364,7 +364,7 @@ sub spinach_cmd { my ($id, $key, $value) = split /\s+/, $arguments, 3; if (not defined $id) { - return "Usage: spinach edit [key] [value]"; + return "Usage: spinach edit [key [value]]"; } $id =~ s/,//g;