Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 3145:675241be2935
sessionmanager: Rename filters_initialize->initialize_filters
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 02 Jun 2010 18:22:23 +0100 |
parent | 3143:887a6374f51c |
child | 3240:9782a222e941 |
comparison
equal
deleted
inserted
replaced
3144:9e16012c2155 | 3145:675241be2935 |
---|---|
24 local rm_load_roster = require "core.rostermanager".load_roster; | 24 local rm_load_roster = require "core.rostermanager".load_roster; |
25 local config_get = require "core.configmanager".get; | 25 local config_get = require "core.configmanager".get; |
26 local nameprep = require "util.encodings".stringprep.nameprep; | 26 local nameprep = require "util.encodings".stringprep.nameprep; |
27 local resourceprep = require "util.encodings".stringprep.resourceprep; | 27 local resourceprep = require "util.encodings".stringprep.resourceprep; |
28 | 28 |
29 local filters_initialize = require "util.filters".initialize; | 29 local initialize_filters = require "util.filters".initialize; |
30 local fire_event = require "core.eventmanager".fire_event; | 30 local fire_event = require "core.eventmanager".fire_event; |
31 local add_task = require "util.timer".add_task; | 31 local add_task = require "util.timer".add_task; |
32 local gettime = require "socket".gettime; | 32 local gettime = require "socket".gettime; |
33 | 33 |
34 local st = require "util.stanza"; | 34 local st = require "util.stanza"; |
49 getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end; | 49 getmetatable(session.trace).__gc = function () open_sessions = open_sessions - 1; end; |
50 end | 50 end |
51 open_sessions = open_sessions + 1; | 51 open_sessions = open_sessions + 1; |
52 log("debug", "open sessions now: ".. open_sessions); | 52 log("debug", "open sessions now: ".. open_sessions); |
53 | 53 |
54 local filter = filters_initialize(session); | 54 local filter = initialize_filters(session); |
55 local w = conn.write; | 55 local w = conn.write; |
56 session.send = function (t) | 56 session.send = function (t) |
57 if t.name then | 57 if t.name then |
58 t = filter("stanzas/out", t); | 58 t = filter("stanzas/out", t); |
59 end | 59 end |