mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 22:15:45 -04:00
should make it respond to "hi perlbot" now
This commit is contained in:
parent
225d14fe3b
commit
9b2996b532
1 changed files with 6 additions and 0 deletions
|
@ -303,6 +303,12 @@ sub _said {
|
||||||
$said->{addressed} = 1;
|
$said->{addressed} = 1;
|
||||||
$said->{addressed_as} = $1;
|
$said->{addressed_as} = $1;
|
||||||
}
|
}
|
||||||
|
elsif ($body =~ s/\s*\b($name_re)\s*$//)
|
||||||
|
{
|
||||||
|
$said->{body} = $body;
|
||||||
|
$said->{addressed} = 1;
|
||||||
|
$said->{addressed_as} = $1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#--------------------------
|
#--------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue