mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-18 14:30:40 +01:00
Escape delim in factchange
command to allow delimiters such as the pipe character
This commit is contained in:
parent
a562f79956
commit
a3df01bae3
@ -944,6 +944,8 @@ sub factchange {
|
||||
$delim = $3;
|
||||
}
|
||||
|
||||
$delim = quotemeta $delim;
|
||||
|
||||
if($arguments =~ /$delim(.*?)$delim(.*)$delim(.*)?$/) {
|
||||
$tochange = $1;
|
||||
$changeto = $2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user