Comparison

tools/xep227toprosody.lua @ 3540:bc139431830b

Monster whitespace commit (beware the whitespace monster).
author Waqas Hussain <waqas20@gmail.com>
date Sat, 16 Oct 2010 23:00:42 +0500
parent 2508:fed7f19db0da
child 3709:db1c1ddc79e8
comparison
equal deleted inserted replaced
3539:8bbd965267b2 3540:bc139431830b
112 -- of constantly reopening the file with list_append()? 112 -- of constantly reopening the file with list_append()?
113 for ch in offline_messages:childtags() do 113 for ch in offline_messages:childtags() do
114 --print("message :"..ch:pretty_print()); 114 --print("message :"..ch:pretty_print());
115 local ret, err = dm.list_append(username, host, "offline", st.preserialize(ch)); 115 local ret, err = dm.list_append(username, host, "offline", st.preserialize(ch));
116 print("["..(err or "success").."] stored offline message: " ..username.."@"..host.." - "..ch.attr.from); 116 print("["..(err or "success").."] stored offline message: " ..username.."@"..host.." - "..ch.attr.from);
117 end 117 end
118 end 118 end
119 119
120 120
121 function store_subscription_request(username, host, presence_stanza) 121 function store_subscription_request(username, host, presence_stanza)
122 local from_bare = presence_stanza.attr.from; 122 local from_bare = presence_stanza.attr.from;