naughty: escape title too
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
82921ef57b
commit
97709a4b3e
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue