Comparison

core/stanza_router.lua @ 1244:3df7417225fe

stanza_router: Changed to use the prosody.events object directly, rather than through eventmanager2
author Waqas Hussain <waqas20@gmail.com>
date Sun, 31 May 2009 00:43:24 +0500
parent 1230:53555f58586f
child 1254:c199be608546
comparison
equal deleted inserted replaced
1243:cd004d83a12a 1244:3df7417225fe
40 local ipairs = ipairs; 40 local ipairs = ipairs;
41 41
42 local jid_split = require "util.jid".split; 42 local jid_split = require "util.jid".split;
43 local jid_prepped_split = require "util.jid".prepped_split; 43 local jid_prepped_split = require "util.jid".prepped_split;
44 local print = print; 44 local print = print;
45 local fire_event = require "core.eventmanager2".fire_event; 45 local fire_event = prosody.events.fire_event;
46 46
47 local select_best_resources; 47 local select_best_resources;
48 48
49 function core_process_stanza(origin, stanza) 49 function core_process_stanza(origin, stanza)
50 (origin.log or log)("debug", "Received[%s]: %s", origin.type, stanza:top_tag()) 50 (origin.log or log)("debug", "Received[%s]: %s", origin.type, stanza:top_tag())