aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-26 14:51:55 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-26 14:51:55 +0100
commit898ec7a5cfb4dd5a0a589725e627966a8410e2ce (patch)
tree774adc89ca2a37109ecf11f0df5347d70a7d2132 /core/moduleapi.lua
parent45aab93d285912787385d4ee089624d5de71d431 (diff)
downloadprosody-898ec7a5cfb4dd5a0a589725e627966a8410e2ce.tar.gz
prosody-898ec7a5cfb4dd5a0a589725e627966a8410e2ce.zip
moduleapi: Fix parameters to unhook_object_event()
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 1c676bc3..8e76a247 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -73,7 +73,7 @@ function api:hook_object_event(object, event, handler, priority)
return object.add_handler(event, handler, priority);
end
-function api:unhook_object_event(event, handler)
+function api:unhook_object_event(object, event, handler)
return object.remove_handler(event, handler);
end