# HG changeset patch # User Kim Alvefur # Date 1330436165 -3600 # Node ID cade7dac615903038da60e00ec42bc752d2daed8 # Parent 26754852281067dc820a401070a4e16900450947 mod_mam: Try to not bork when sending a message to your bare jid diff -r 267548522810 -r cade7dac6159 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Tue Feb 28 14:33:35 2012 +0100 +++ b/mod_mam/mod_mam.lua Tue Feb 28 14:36:05 2012 +0100 @@ -202,6 +202,7 @@ if not orig_from and c2s then orig_from = origin.full_jid; end + orig_to = orig_to or orig_from; -- Weird corner cases -- Don't store messages of these types if orig_type == "error"