# HG changeset patch # User Kim Alvefur # Date 1340875928 -7200 # Node ID ae77d9c41f4fa75e525ed2ae10d6a06f1a8b3e6d # Parent a19ccb8f1ef9656eefc773d1f45ad27c6f6ed53c clix.archive: The world doesn't revolve around us. diff -r a19ccb8f1ef9 -r ae77d9c41f4f clix/archive.lua --- a/clix/archive.lua Mon Jun 25 23:57:54 2012 +0200 +++ b/clix/archive.lua Thu Jun 28 11:32:08 2012 +0200 @@ -17,9 +17,10 @@ -- TODO Roster lookup -- TODO Timestamp local a = m.attr; - if bare_jid(a.from) == selfjid then + if a.to and bare_jid(a.to) ~= selfjid then print("To ".. bare_jid(a.to)); - else + end + if a.from and bare_jid(a.from) ~= selfjid then print("From ".. bare_jid(a.from)); end print(m:get_child_text"body");