clix/archive.lua

changeset 118
8bb289b2b7be
parent 117
c6b5d2039f25
child 146
ae85457eca8e
equal deleted inserted replaced
117:c6b5d2039f25 118:8bb289b2b7be
17 local function print_message(i) 17 local function print_message(i)
18 -- TODO Roster lookup 18 -- TODO Roster lookup
19 local m = i.message; 19 local m = i.message;
20 local a = m.attr; 20 local a = m.attr;
21 if i.stamp then 21 if i.stamp then
22 print(os.date(nil, i.stamp)); 22 print(os.date("%Y-%m-%d %H:%M:%S", i.stamp));
23 end 23 end
24 if a.to and bare_jid(a.to) ~= selfjid then 24 if a.to and bare_jid(a.to) ~= selfjid then
25 print("To ".. bare_jid(a.to)); 25 print("To ".. bare_jid(a.to));
26 end 26 end
27 if a.from and bare_jid(a.from) ~= selfjid then 27 if a.from and bare_jid(a.from) ~= selfjid then

mercurial