From 4d626a622e08ef56c1eb770c159af50c9d928036 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 31 Dec 2009 02:39:40 +0000 Subject: util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively --- util/events.lua | 8 ++++---- 1 file 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; -- cgit v1.2.3