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 | 07fcf555ba90278a318df3a7bdc531cf6c6b9881 (patch) | |
tree | 750e3c2cc38a7c3903506af64d5ea92d06c8f21d /core/moduleapi.lua | |
parent | aec67b444ed2ddaaf7275b8e0dfa1f439ccb600c (diff) | |
download | prosody-07fcf555ba90278a318df3a7bdc531cf6c6b9881.tar.gz prosody-07fcf555ba90278a318df3a7bdc531cf6c6b9881.zip |
moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error
Diffstat (limited to 'core/moduleapi.lua')
-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) |