Software / code / prosody
Comparison
core/moduleapi.lua @ 6652:06116b2789f0
moduleapi: Remove accidental use of undefined and unnecessary 'priority' variable
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 06 May 2015 18:58:29 +0100 |
| parent | 6651:deaa3d66dc2c |
| child | 6653:8241eac507c3 |
comparison
equal
deleted
inserted
replaced
| 6651:deaa3d66dc2c | 6652:06116b2789f0 |
|---|---|
| 128 function api:wrap_event(event, handler) | 128 function api:wrap_event(event, handler) |
| 129 return self:wrap_object_event((hosts[self.host] or prosody).events, event, handler); | 129 return self:wrap_object_event((hosts[self.host] or prosody).events, event, handler); |
| 130 end | 130 end |
| 131 | 131 |
| 132 function api:wrap_global(event, handler) | 132 function api:wrap_global(event, handler) |
| 133 return self:hook_object_event(prosody.events, event, handler, priority); | 133 return self:hook_object_event(prosody.events, event, handler); |
| 134 end | 134 end |
| 135 | 135 |
| 136 function api:require(lib) | 136 function api:require(lib) |
| 137 local f, n = pluginloader.load_code(self.name, lib..".lib.lua", self.environment); | 137 local f, n = pluginloader.load_code(self.name, lib..".lib.lua", self.environment); |
| 138 if not f then | 138 if not f then |