examples/evil.lua
changeset 64 bf7521ed96eb
parent 63 423555c07763
child 66 542f61e113cb
--- a/examples/evil.lua	Mon Mar 23 09:22:04 2009 +0200
+++ b/examples/evil.lua	Fri Mar 27 01:46:53 2009 +0200
@@ -7,7 +7,7 @@
 -- library
 
 require 'lm'
-require 'iq'
+local iq = require 'iq'
 
 -- public
 
@@ -55,9 +55,9 @@
 		local evillevel = tonumber(main.option ( 'lua_evil_sensibility' ))
 		local mtype, smtype = mess:type ()
 		if evillevel > 1 then
-			main.print_info ( mess:attribute ( 'from' ), 'Evil stanza of type "' .. mtype .. ' ' .. smtype .. '" detected!' )
+			main.print_info ( mess:attribute ( 'from' ), 'Evil stanza of type ' .. mtype .. '.' .. smtype .. ' detected!' )
 		elseif evillevel > 0 then
-			print ( 'Tainted by evil stanza of type "' .. mtype .. ' ' .. smtype .. '" from ' .. ( mess:attribute ( 'from' ) or '... unknown in black' ) )
+			print ( 'Tainted by evil stanza of type ' .. mtype .. '.' .. smtype .. ' from ' .. ( mess:attribute ( 'from' ) or '... unknown in black' ) )
 		end
 		return main.yesno ( main.option ( 'lua_filter_evil' ) )
 	end