aboutsummaryrefslogtreecommitdiffstats
path: root/util/filters.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-02 12:23:07 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-02 12:23:07 +0100
commitac72ecb7fd942b5cb50be1c19a711907ec3a79ce (patch)
tree681e6d962598f72d3f5dab5487ff81ac46e8bd92 /util/filters.lua
parent8f8e28d750549b090b9c84c49d44d0a9ec398070 (diff)
downloadprosody-ac72ecb7fd942b5cb50be1c19a711907ec3a79ce.tar.gz
prosody-ac72ecb7fd942b5cb50be1c19a711907ec3a79ce.zip
util.filters: Expose the initialization function
Diffstat (limited to 'util/filters.lua')
-rw-r--r--util/filters.lua4
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];