mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Also accept 'commands' command instead of help, since it is what some people expect. We should probably also support 'list' but that is more likely to clash with other modules.
This commit is contained in:
parent
0f673dbef7
commit
e04f6d3fa6
@ -35,7 +35,7 @@ sub Help {
|
||||
sub Told {
|
||||
my $self = shift;
|
||||
my ($event, $message) = @_;
|
||||
if ($message =~ /^\s*help(?:\s+($variablepattern))?[ ?!.]*\s*$/osi) {
|
||||
if ($message =~ /^\s*(?:help|commands?)(?:\s+($variablepattern))?[ ?!.]*\s*$/osi) {
|
||||
if ($1) {
|
||||
# display help for that command
|
||||
# first, build the help file...
|
||||
|
Loading…
Reference in New Issue
Block a user