aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-06 19:00:05 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-06 19:00:05 +0100
commit07fcf555ba90278a318df3a7bdc531cf6c6b9881 (patch)
tree750e3c2cc38a7c3903506af64d5ea92d06c8f21d
parentaec67b444ed2ddaaf7275b8e0dfa1f439ccb600c (diff)
downloadprosody-07fcf555ba90278a318df3a7bdc531cf6c6b9881.tar.gz
prosody-07fcf555ba90278a318df3a7bdc531cf6c6b9881.zip
moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error
-rw-r--r--core/moduleapi.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 62c9f534..11d1fdc1 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -408,11 +408,11 @@ function api:measure_object_event(events_object, event_name, stat_name)
end
function api:measure_event(event_name, stat_name)
- return self:hook_object_event((hosts[self.host] or prosody).events.wrappers, event_name, handler);
+ return self:measure_object_event((hosts[self.host] or prosody).events.wrappers, event_name, stat_name);
end
function api:measure_global_event(event_name, stat_name)
- return self:hook_object_event(prosody.events.wrappers, event_name, handler);
+ return self:measure_object_event(prosody.events.wrappers, event_name, stat_name);
end
function api.init(mm)