Comparison

mod_host_guard/mod_host_guard.lua @ 533:47b9053dba38

mod_host_guard: replaced prosody.events.add_handler with module:hook.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 08 Jan 2012 03:51:16 +0000
parent 528:1737c08fde30
child 537:50be30f203f3
comparison
equal deleted inserted replaced
532:967ba17b1d2a 533:47b9053dba38
103 end 103 end
104 104
105 if prosody.start_time then 105 if prosody.start_time then
106 setup() 106 setup()
107 else 107 else
108 prosody.events.add_handler("server-started", setup) 108 module:hook ("server-started", setup)
109 end 109 end