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 |