Comparison

plugins/mod_presence.lua @ 4037:5262d3eb7f01

mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
author Robert Hoelz <rob@hoelz.ro>
date Thu, 09 Dec 2010 12:28:05 -0600
parent 4036:32b55f06a3bd
child 4139:eef75a0c85e3
comparison
equal deleted inserted replaced
4036:32b55f06a3bd 4037:5262d3eb7f01
115 end 115 end
116 116
117 if priority >= 0 then 117 if priority >= 0 then
118 local event = { origin = origin } 118 local event = { origin = origin }
119 module:fire_event('message/offline/broadcast', event); 119 module:fire_event('message/offline/broadcast', event);
120 module:fire_event('message/offline/delete', event);
121 end 120 end
122 end 121 end
123 if stanza.attr.type == "unavailable" then 122 if stanza.attr.type == "unavailable" then
124 origin.presence = nil; 123 origin.presence = nil;
125 if origin.priority then 124 if origin.priority then