Software /
code /
prosody
Changeset
3134:9a29ad6a9b97
util.filters: Expose the initialization function
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 02 Jun 2010 12:23:07 +0100 |
parents | 3133:d3f16b4c1ecb |
children | 3135:f29a297471e3 |
files | util/filters.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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];