# HG changeset patch # User Matthew Wild # Date 1262227180 0 # Node ID 2c416334579c48825575713d6f45724145bdc622 # Parent 88f73ee1c46f9db89afda1a63d20758a67475211 util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively diff -r 88f73ee1c46f -r 2c416334579c util/events.lua --- a/util/events.lua Wed Dec 30 20:24:11 2009 +0000 +++ b/util/events.lua Thu Dec 31 02:39:40 2009 +0000 @@ -47,13 +47,13 @@ _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;