naughty: escape title too

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Radu Andries 2011-05-01 15:10:03 +02:00 committed by Uli Schlachter
parent 1df8e29772
commit ff8b45b77a
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ function notify(args)
textbox.valign = "middle" textbox.valign = "middle"
local function setText(pattern, replacements) local function setText(pattern, replacements)
textbox.text = string.format('<span font_desc="%s"><b>%s</b>%s</span>', font, title, text:gsub(pattern, replacements)) textbox.text = string.format('<span font_desc="%s"><b>%s</b>%s</span>', font, title:gsub(pattern, replacements), text:gsub(pattern, replacements))
end end
-- First try to set the text while only interpreting <br>. -- First try to set the text while only interpreting <br>.