зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
577637eb51
Коммит
7126fa6307
|
@ -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...
|
||||
|
|
Загрузка…
Ссылка в новой задаче