3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 23:39:24 +01:00

Updating FactoidModuleLauncher.pm to correct slash intrapolation (esp on newlines)

This commit is contained in:
Pragmatic Software 2010-05-25 05:47:13 +00:00
parent aead7b17da
commit 45152f74b4

View File

@ -100,7 +100,7 @@ sub execute_module {
$lr = $r if not defined $lr; $lr = $r if not defined $lr;
if(defined $e) { if(defined $e) {
$e =~ s/\\//g; $e =~ s/\\([^\w])/$1/g;
$e =~ s/'/'\\''/g; $e =~ s/'/'\\''/g;
$e =~ s/^'\\''/'/; $e =~ s/^'\\''/'/;
$e =~ s/'\\''$/'/; $e =~ s/'\\''$/'/;