get_txt.lua: Text als Code
This commit is contained in:
parent
c6456a8638
commit
504ca91ef6
@ -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
|
Reference in New Issue
Block a user