clix/archive.lua

changeset 146
ae85457eca8e
parent 118
8bb289b2b7be
child 147
0bc82a318c45
equal deleted inserted replaced
145:6e05b25c2669 146:ae85457eca8e
15 end 15 end
16 local selfjid; 16 local selfjid;
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 if not m:get_child("body") then return end
20 local a = m.attr; 21 local a = m.attr;
21 if i.stamp then 22 if i.stamp then
22 print(os.date("%Y-%m-%d %H:%M:%S", i.stamp)); 23 print(os.date("%Y-%m-%d %H:%M:%S", i.stamp));
23 end 24 end
24 if a.to and bare_jid(a.to) ~= selfjid then 25 if a.to and bare_jid(a.to) ~= selfjid then

mercurial