diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-31 02:39:40 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-31 02:39:40 +0000 |
commit | 4d626a622e08ef56c1eb770c159af50c9d928036 (patch) | |
tree | 5776cb03159f7f43de3d1f308f515c9cad72d018 | |
parent | 7cbfe364b6d03492742986aa5ff942b4c741d0f0 (diff) | |
download | prosody-4d626a622e08ef56c1eb770c159af50c9d928036.tar.gz prosody-4d626a622e08ef56c1eb770c159af50c9d928036.zip |
util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively
-rw-r--r-- | util/events.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/events.lua b/util/events.lua index a1edd496..ef8fc30a 100644 --- a/util/events.lua +++ b/util/events.lua @@ -47,13 +47,13 @@ function new() _rebuild_index(event); end end; - local function add_plugin(plugin) - for event, handler in pairs(plugin) do + local function add_handlers(handlers) + for event, handler in pairs(handlers) do add_handler(event, handler); end end; - local function remove_plugin(plugin) - for event, handler in pairs(plugin) do + local function remove_handlers(handlers) + for event, handler in pairs(handlers) do remove_handler(event, handler); end end; |