changeset 265:8cd2fab3135a

mod_muc_log_http: Updated to use the new events API.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 16 Oct 2010 08:09:48 +0500
parents 07c17b60229a
children e7296274f48c 76f3310ec113
files mod_muc_log_http/muc_log_http/mod_muc_log_http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Sat Oct 16 08:07:52 2010 +0500
+++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Sat Oct 16 08:09:48 2010 +0500
@@ -827,7 +827,7 @@
 	module:log("debug", "unloaded mod_muc_log_http");
 end
 
-module:add_event_hook("component-activated", function(component, config)
+module:hook("component-activated", function(component, config)
 	if config.core and config.core.modules_enabled then
 		for _,mod in ipairs(config.core.modules_enabled) do
 			if(mod == "muc_log") then