aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modulemanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 18b511e6..748c7dce 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -368,9 +368,9 @@ function api:fire_event(...)
return (hosts[self.host] or prosody).events.fire_event(...);
end
-function api:hook(event, handler)
+function api:hook(event, handler, priority)
hooks:set(self.host, self.name, event, handler, true);
- (hosts[self.host] or prosody).events.add_handler(event, handler);
+ (hosts[self.host] or prosody).events.add_handler(event, handler, priority);
end
--------------------------------------------------------------------