Comparison

core/moduleapi.lua @ 6653:8241eac507c3

moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:00:05 +0100
parent 6652:06116b2789f0
child 6654:22a7ee3379bc
comparison
equal deleted inserted replaced
6652:06116b2789f0 6653:8241eac507c3
406 end 406 end
407 return self:hook_object_event(events_object, event_name, handler); 407 return self:hook_object_event(events_object, event_name, handler);
408 end 408 end
409 409
410 function api:measure_event(event_name, stat_name) 410 function api:measure_event(event_name, stat_name)
411 return self:hook_object_event((hosts[self.host] or prosody).events.wrappers, event_name, handler); 411 return self:measure_object_event((hosts[self.host] or prosody).events.wrappers, event_name, stat_name);
412 end 412 end
413 413
414 function api:measure_global_event(event_name, stat_name) 414 function api:measure_global_event(event_name, stat_name)
415 return self:hook_object_event(prosody.events.wrappers, event_name, handler); 415 return self:measure_object_event(prosody.events.wrappers, event_name, stat_name);
416 end 416 end
417 417
418 function api.init(mm) 418 function api.init(mm)
419 modulemanager = mm; 419 modulemanager = mm;
420 return api; 420 return api;