5487906487
Previously, an invalid markup caused an empty popup. Since the C core now throws a lua error on invalid markup, we have a way to notice that something is wrong. This patch first tries to set the notification's text the same way we did previously. If that fails, everything is escaped and the result is used as the text for the notification. Thanks to farhaven/Gregor Best for the initial version of this and for the string.gsub() call I stole from him. :) Signed-off-by: Uli Schlachter <psychon@znc.in> |
||
---|---|---|
.. | ||
awful | ||
beautiful.lua.in | ||
naughty.lua.in |