mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +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 =~ 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'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user