diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:00:05 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:00:05 +0100 |
commit | 3da0331d8aeaa87c7d7924f7d3d3653c1f11047e (patch) | |
tree | 750e3c2cc38a7c3903506af64d5ea92d06c8f21d /core | |
parent | 82633f6735574ce4e752f41e7395d58c1b2c3592 (diff) | |
download | prosody-3da0331d8aeaa87c7d7924f7d3d3653c1f11047e.tar.gz prosody-3da0331d8aeaa87c7d7924f7d3d3653c1f11047e.zip |
moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error
Diffstat (limited to 'core')
-rw-r--r-- | core/moduleapi.lua | 4 |
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) |