examples/evil.lua
changeset 121 75a7d595817c
parent 111 5bcdb71ef2f2
equal deleted inserted replaced
120:1be9411caf31 121:75a7d595817c
   103 
   103 
   104 main.hook ( 'hook-lua-start',
   104 main.hook ( 'hook-lua-start',
   105 	function ( args )
   105 	function ( args )
   106 		main.add_feature ( 'http://jabber.org/protocol/evil' )
   106 		main.add_feature ( 'http://jabber.org/protocol/evil' )
   107 		evil_pc_handler ()
   107 		evil_pc_handler ()
   108 	end
   108 	end )
   109 main.hook ( 'hook-lua-quit',
   109 main.hook ( 'hook-lua-quit',
   110 	function ( args )
   110 	function ( args )
   111 		main.del_feature ( 'http://jabber.org/protocol/evil' )
   111 		main.del_feature ( 'http://jabber.org/protocol/evil' )
   112 		evil_pd_handler ()
   112 		evil_pd_handler ()
   113 	end )
   113 	end )