3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-02 01:18:40 +02:00

Factoids: unescape certain symbols after expansion

This commit is contained in:
Pragmatic Software 2020-06-17 04:11:18 -07:00
parent 0adcce52ef
commit afcb4a0f98

View File

@ -888,8 +888,8 @@ sub expand_factoid_vars {
$result = $self->expand_special_vars($from, $nick, $root_keyword, $result);
$result =~ s/\\\$/\$/g;
$result =~ s/(?<!\\)\\(.)/$1/g;
# unescape certain symbols
$result =~ s/(?<!\\)\\([\$\:\|])/$1/g;
return validate_string($result, $self->{pbot}->{registry}->get_value('factoids', 'max_content_length'));
}