comparison mod_mam/mod_mam.lua @ 619:cade7dac6159

mod_mam: Try to not bork when sending a message to your bare jid
author Kim Alvefur <zash@zash.se>
date Tue, 28 Feb 2012 14:36:05 +0100
parents 6be3a130c810
children 648e75c9d3e7
comparison
equal deleted inserted replaced
618:267548522810 619:cade7dac6159
200 local orig_from = stanza.attr.from; 200 local orig_from = stanza.attr.from;
201 201
202 if not orig_from and c2s then 202 if not orig_from and c2s then
203 orig_from = origin.full_jid; 203 orig_from = origin.full_jid;
204 end 204 end
205 orig_to = orig_to or orig_from; -- Weird corner cases
205 206
206 -- Don't store messages of these types 207 -- Don't store messages of these types
207 if orig_type == "error" 208 if orig_type == "error"
208 or orig_type == "headline" 209 or orig_type == "headline"
209 or orig_type == "groupchat" then 210 or orig_type == "groupchat" then