summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--notify.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/notify.pl b/notify.pl
index e93633e..238368c 100644
--- a/notify.pl
+++ b/notify.pl
@@ -25,6 +25,7 @@ Irssi::settings_add_str('notify', 'notify_time', '5000');
sub sanitize {
my ($text) = @_;
+ $text =~ s/\\/\\\\\\\\/g;
$text =~ s/`/\\`/g;
$text =~ s/\$/\\\$/g;
encode_entities($text);