Comparison

plugins/mod_offline.lua @ 4040:898399fd8da1

mod_message, mod_offline: Change message/offline/store -> message/offline/handle
author Robert Hoelz <rob@hoelz.ro>
date Thu, 09 Dec 2010 12:41:30 -0600
parent 4039:1c387a4c3e28
child 3973:f5416372350d
comparison
equal deleted inserted replaced
4039:1c387a4c3e28 4040:898399fd8da1
13 local ipairs = ipairs; 13 local ipairs = ipairs;
14 local jid_split = require "util.jid".split; 14 local jid_split = require "util.jid".split;
15 15
16 module:add_feature("msgoffline"); 16 module:add_feature("msgoffline");
17 17
18 module:hook("message/offline/store", function(event) 18 module:hook("message/offline/handle", function(event)
19 local origin, stanza = event.origin, event.stanza; 19 local origin, stanza = event.origin, event.stanza;
20 local to = stanza.attr.to; 20 local to = stanza.attr.to;
21 local node, host; 21 local node, host;
22 if to then 22 if to then
23 node, host = jid_split(to) 23 node, host = jid_split(to)