webXMPP

Check-in [8543639bab]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix usage
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:8543639bab5ae1a559e96b9398301814ca3da74f45f60f2aefc209a89b15accb
User & Date: vandys 2018-09-22 14:07:53
Context
2018-11-09
01:41
Some logging for the Ham notification service. Suppress initial notification events while the notify daemon is starting up and catching up. Blacklist is an ofono thing, but it sits alongside the others on my Ubuntu phone, so I'll just keep it here for now check-in: 915508d040 user: vandys tags: master, trunk
2018-09-22
14:07
Fix usage check-in: 8543639bab user: vandys tags: master, trunk
04:17
We just make sure chore's in our PYTHONPATH now check-in: ac97fbaaa9 user: vandys tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tools/ham.py.

   204    204   		# New messages
   205    205   		self.notify(resp)
   206    206   		self.gen = resp.inner["gen"]
   207    207   
   208    208   if __name__ == "__main__":
   209    209   
   210    210       # Usage
   211         -    if len(sys.argv) != 1:
   212         -	sys.stderr.write("Usage is: %s <config>\n" % (sys.argv[0],))
          211  +    if len(sys.argv) not in (1, 2):
          212  +	sys.stderr.write("Usage is: %s [<config>]\n" % (sys.argv[0],))
   213    213   
   214    214       # Config and run
   215    215       if len(sys.argv) == 1:
   216    216   	cfgn = os.environ["HOME"] + "/.config/hamnotify.txt"
   217    217       else:
   218    218   	cfgn = sys.argv[1]
   219    219       n = HamNotifier(cfgn)
   220    220       n.run()