From 7126fa6307d57cd5df06c77e57f68400ad1bcfad Mon Sep 17 00:00:00 2001 From: "ian%hixie.ch" Date: Wed, 28 Jan 2004 13:09:40 +0000 Subject: [PATCH] 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. --- webtools/mozbot/BotModules/General.bm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtools/mozbot/BotModules/General.bm b/webtools/mozbot/BotModules/General.bm index 7fac22a7996..c1f2d49df0e 100644 --- a/webtools/mozbot/BotModules/General.bm +++ b/webtools/mozbot/BotModules/General.bm @@ -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...