зеркало из https://github.com/mozilla/gecko-dev.git
Lets the invite command accept the more natural syntax 'invite user in #channel' rather than just 'invite user channel'. r=zach; b=72949
This commit is contained in:
Родитель
0d91173a00
Коммит
ba09233316
|
@ -36,7 +36,11 @@ sub Told {
|
|||
$self->emote($event, $2);
|
||||
} elsif ($message =~ /^\s*announce\s+(.*)$/osi) {
|
||||
$self->announce($event, $1);
|
||||
} elsif ($message =~ /^\s*invite\s+(\S+)\s+(\S+)\s*$/osi) {
|
||||
} elsif ($message =~ /^\s* invite \s+
|
||||
(\S+) \s+
|
||||
(?: (?:in|to|into) \s+
|
||||
(?:channel \s+)? )?
|
||||
(\S+) \s*$/osix) {
|
||||
$self->invite($event, $1, $2);
|
||||
} else {
|
||||
return $self->SUPER::Told(@_);
|
||||
|
|
Загрузка…
Ссылка в новой задаче