clix/watch_pep.lua

changeset 145
6e05b25c2669
parent 144
febc3992bee6
equal deleted inserted replaced
144:febc3992bee6 145:6e05b25c2669
13 viewing = "urn:xmpp:viewing:0"; -- XEP-0197 13 viewing = "urn:xmpp:viewing:0"; -- XEP-0197
14 vcard4 = "urn:xmpp:vcard4"; -- XEP-0292 14 vcard4 = "urn:xmpp:vcard4"; -- XEP-0292
15 }; 15 };
16 16
17 return function (opts, arg) 17 return function (opts, arg)
18 if opts.short_help or not arg[1] then 18 if opts.short_help then
19 print("Watches PEP notifications from all contacts") 19 print("Watches PEP notifications from all contacts")
20 return;
21 end
22 if opts.help or not arg[1] then
20 print("clix watch_pep [--noempty] PEP-NODE+") 23 print("clix watch_pep [--noempty] PEP-NODE+")
21 return; 24 return;
22 end 25 end
23 26
24 local function handle_notification(event) 27 local function handle_notification(event)

mercurial