Comparison

plugins/mod_presence.lua @ 3969:32d4a73901e2

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 3968:048af3ee5899
child 4139:eef75a0c85e3
comparison
equal deleted inserted replaced
3968:048af3ee5899 3969:32d4a73901e2
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