mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 20:42:38 +01:00
Replace "me" in factoid arguments only during first interpretation pass
This commit is contained in:
parent
d8183fc405
commit
70f091545b
@ -190,7 +190,7 @@ sub interpret {
|
|||||||
and $keyword ne "change"
|
and $keyword ne "change"
|
||||||
and $keyword ne "msg") {
|
and $keyword ne "msg") {
|
||||||
$keyword =~ s/(\w+)([?!.]+)$/$1/;
|
$keyword =~ s/(\w+)([?!.]+)$/$1/;
|
||||||
$arguments =~ s/(?<![\w\/\-])me\b/$nick/gi if defined $arguments;
|
$arguments =~ s/(?<![\w\/\-])me\b/$nick/gi if defined $arguments && $depth <= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(defined $arguments && $arguments =~ m/^(your|him|her|its|it|them|their)(self|selves)$/i) {
|
if(defined $arguments && $arguments =~ m/^(your|him|her|its|it|them|their)(self|selves)$/i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user