Software /
code /
prosody
Comparison
plugins/mod_offline.lua @ 3972:a05cf5d9c7ab
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 | 3971:faace741d0f9 |
child | 3973:f5416372350d |
comparison
equal
deleted
inserted
replaced
3971:faace741d0f9 | 3972:a05cf5d9c7ab |
---|---|
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) |