diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-06-02 12:23:07 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-06-02 12:23:07 +0100 |
commit | ac72ecb7fd942b5cb50be1c19a711907ec3a79ce (patch) | |
tree | 681e6d962598f72d3f5dab5487ff81ac46e8bd92 /util | |
parent | 8f8e28d750549b090b9c84c49d44d0a9ec398070 (diff) | |
download | prosody-ac72ecb7fd942b5cb50be1c19a711907ec3a79ce.tar.gz prosody-ac72ecb7fd942b5cb50be1c19a711907ec3a79ce.zip |
util.filters: Expose the initialization function
Diffstat (limited to 'util')
-rw-r--r-- | util/filters.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/filters.lua b/util/filters.lua index 09a81cdb..af5b8d2d 100644 --- a/util/filters.lua +++ b/util/filters.lua @@ -10,7 +10,7 @@ local t_insert, t_remove = table.insert, table.remove; module "filters" -local function initialize_session(session) +function initialize(session) local filters = {}; session.filters = filters; @@ -25,7 +25,7 @@ end function add_filter(session, type, callback, priority) if not session.filters then - initialize_session(session); + initialize(session); end local filter_list = session.filters[type]; |