clix/archive.lua

changeset 80
ae77d9c41f4f
parent 79
a19ccb8f1ef9
child 81
e87f4d0b1a80
equal deleted inserted replaced
79:a19ccb8f1ef9 80:ae77d9c41f4f
15 local selfjid; 15 local selfjid;
16 local function print_message(m) 16 local function print_message(m)
17 -- TODO Roster lookup 17 -- TODO Roster lookup
18 -- TODO Timestamp 18 -- TODO Timestamp
19 local a = m.attr; 19 local a = m.attr;
20 if bare_jid(a.from) == selfjid then 20 if a.to and bare_jid(a.to) ~= selfjid then
21 print("To ".. bare_jid(a.to)); 21 print("To ".. bare_jid(a.to));
22 else 22 end
23 if a.from and bare_jid(a.from) ~= selfjid then
23 print("From ".. bare_jid(a.from)); 24 print("From ".. bare_jid(a.from));
24 end 25 end
25 print(m:get_child_text"body"); 26 print(m:get_child_text"body");
26 print""; 27 print"";
27 end 28 end

mercurial