aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-31 00:45:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-31 00:45:02 +0500
commit56503dcc0671e076393c6bf09e4a597370c545dd (patch)
tree2a52c980ed110ee0633886d621633576caf21712
parent1cd2044dcc448927f7d9fb753b3ccee0d3da1acd (diff)
downloadprosody-56503dcc0671e076393c6bf09e4a597370c545dd.tar.gz
prosody-56503dcc0671e076393c6bf09e4a597370c545dd.zip
mod_presence: Changed to use the prosody.events object directly, rather than through eventmanager2
-rw-r--r--plugins/mod_presence.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index d2dd2f51..ba71b940 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -267,10 +267,7 @@ local function presence_handler(data)
return true;
end
-local add_handler = require "core.eventmanager2".add_handler;
-local remove_handler = require "core.eventmanager2".remove_handler;
-
-add_handler(module:get_host().."/presence", presence_handler);
+prosody.events.add_handler(module:get_host().."/presence", presence_handler);
module.unload = function()
- remove_handler(module:get_host().."/presence", presence_handler);
+ prosody.events.remove_handler(module:get_host().."/presence", presence_handler);
end