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 82921ef57b
commit 97709a4b3e
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ function notify(args)
textbox:set_font(font) textbox:set_font(font)
local function setMarkup(pattern, replacements) local function setMarkup(pattern, replacements)
textbox:set_markup(string.format('<b>%s</b>%s', title, text:gsub(pattern, replacements))) textbox:set_markup(string.format('<b>%s</b>%s', title:gsub(pattern, replacements), text:gsub(pattern, replacements)))
end end
local function setText() local function setText()
textbox:set_text(string.format('%s %s', title, text)) textbox:set_text(string.format('%s %s', title, text))