Software /
code /
prosody
Comparison
plugins/mod_message.lua @ 1423:5e72c3e1743a
mod_message: Advertise offline message support as per XEP-0160 (thanks nolan)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 26 Jun 2009 15:35:20 +0100 |
parent | 1418:d14de6cb8b5b |
child | 1522:569d58d21612 |
comparison
equal
deleted
inserted
replaced
1422:db9cb1f24f38 | 1423:5e72c3e1743a |
---|---|
65 -- message to bare JID recieved | 65 -- message to bare JID recieved |
66 local origin, stanza = data.origin, data.stanza; | 66 local origin, stanza = data.origin, data.stanza; |
67 | 67 |
68 return process_to_bare(stanza.attr.to or (origin.username..'@'..origin.host), origin, stanza); | 68 return process_to_bare(stanza.attr.to or (origin.username..'@'..origin.host), origin, stanza); |
69 end); | 69 end); |
70 | |
71 module:add_feature("msgoffline"); |