Make mozbot slightly more willing to insult people (won't help much since the servers are down, but oh well)

This commit is contained in:
ian%hixie.ch 2003-08-09 13:54:27 +00:00
Родитель 990229393c
Коммит d63f723feb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -42,7 +42,7 @@ sub RegisterConfig {
sub Told {
my $self = shift;
my ($event, $message) = @_;
if ($message =~ /^\s*insult\s+(\S+?)\s*$/osi) {
if ($message =~ /^\s*(?:will\s+you\s+)?(?:insult|harass)\s+(\S+?)(?:[\s,.]+please)?[\s.?!]*$/osi) {
my $line;
if (defined($self->{'insultOverrides'}->{lc $1})) {
$line = "$1: ".$self->{'insultOverrides'}->{lc $1};