webXMPP

Check-in [37b45bb18e]
Login

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

Overview
Comment:Shorten what's spoken for user@domain sources
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:37b45bb18ec88f4fc66f2746bb4e5f932230c271e3935efcc8319c59414cb08c
User & Date: vandys 2018-09-22 04:04:13
Context
2018-09-22
04:16
Update the README check-in: 7630b78e51 user: vandys tags: master, trunk
04:04
Shorten what's spoken for user@domain sources check-in: 37b45bb18e user: vandys tags: master, trunk
04:01
Deal with punctuation in message text. check-in: 8d7ea3e3f0 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tools/ham.py.

121
122
123
124
125
126
127


128
129
130
131
132
133
134
		n1 = tup[1] + ": " + tup[2]
		n2 = tup[3]

	    # Construct what to say
	    if not n2:
		n = "Notification: %s" % (n1,)
	    else:


		n = "Notification from %s: %s" % (n1, n2)
	    adev = self.cfg["rig"][1]["audio"]
	    desttn = "/tmp/notify%d.txt" % (os.getpid(),)
	    f = open(desttn, "w")
	    f.write(n)
	    f.close()
	    destfn = "/tmp/notify%d.wav" % (os.getpid(),)







>
>







121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
		n1 = tup[1] + ": " + tup[2]
		n2 = tup[3]

	    # Construct what to say
	    if not n2:
		n = "Notification: %s" % (n1,)
	    else:
		if '@' in n1:
		    n1 = n1.split('@')[0]
		n = "Notification from %s: %s" % (n1, n2)
	    adev = self.cfg["rig"][1]["audio"]
	    desttn = "/tmp/notify%d.txt" % (os.getpid(),)
	    f = open(desttn, "w")
	    f.write(n)
	    f.close()
	    destfn = "/tmp/notify%d.wav" % (os.getpid(),)