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
commit3da0331d8aeaa87c7d7924f7d3d3653c1f11047e (patch)
tree750e3c2cc38a7c3903506af64d5ea92d06c8f21d
parent82633f6735574ce4e752f41e7395d58c1b2c3592 (diff)
downloadprosody-3da0331d8aeaa87c7d7924f7d3d3653c1f11047e.tar.gz
prosody-3da0331d8aeaa87c7d7924f7d3d3653c1f11047e.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)