get_txt.lua: Text als Code

This commit is contained in:
Akamaru 2016-10-13 15:27:05 +02:00
parent c6456a8638
commit 504ca91ef6

View File

@ -16,11 +16,11 @@ function get_txt:action(msg, config, matches)
return return
end end
if string.len(res) > 500 then if string.len(res) > 500 then
result = string.sub(res, 1, 500)..'...\n(Text gekürzt, da länger als 500 Zeichen.)' result = '<pre>'..string.sub(res, 1, 500)..'...</pre>\n<i>(Text gekürzt, da länger als 500 Zeichen.)</i>'
else else
result = res result = '<pre>'..res..'</pre>'
end end
utilities.send_reply(msg, result) utilities.send_reply(msg, result, 'HTML')
end end
return get_txt return get_txt