Thu, 28 Jun 2012 11:32:08 +0200
clix.archive: The world doesn't revolve around us.
clix/archive.lua | file | annotate | diff | comparison | revisions |
--- 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");