# HG changeset patch # User Matthew Wild # Date 1275477787 -3600 # Node ID 9a29ad6a9b97e7853f543a6fa7a91da07196ec23 # Parent d3f16b4c1ecbbcf586a3e0b599331a1e73eb1ccb util.filters: Expose the initialization function diff -r d3f16b4c1ecb -r 9a29ad6a9b97 util/filters.lua --- a/util/filters.lua Wed Jun 02 12:20:29 2010 +0100 +++ b/util/filters.lua Wed Jun 02 12:23:07 2010 +0100 @@ -10,7 +10,7 @@ module "filters" -local function initialize_session(session) +function initialize(session) local filters = {}; session.filters = filters; @@ -25,7 +25,7 @@ function add_filter(session, type, callback, priority) if not session.filters then - initialize_session(session); + initialize(session); end local filter_list = session.filters[type];