mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Factoids: unescape certain symbols after expansion
This commit is contained in:
parent
0adcce52ef
commit
afcb4a0f98
@ -888,8 +888,8 @@ sub expand_factoid_vars {
|
|||||||
|
|
||||||
$result = $self->expand_special_vars($from, $nick, $root_keyword, $result);
|
$result = $self->expand_special_vars($from, $nick, $root_keyword, $result);
|
||||||
|
|
||||||
$result =~ s/\\\$/\$/g;
|
# unescape certain symbols
|
||||||
$result =~ s/(?<!\\)\\(.)/$1/g;
|
$result =~ s/(?<!\\)\\([\$\:\|])/$1/g;
|
||||||
|
|
||||||
return validate_string($result, $self->{pbot}->{registry}->get_value('factoids', 'max_content_length'));
|
return validate_string($result, $self->{pbot}->{registry}->get_value('factoids', 'max_content_length'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user