webXMPP

Check-in [a9af2b1f5e]
Login

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

Overview
Comment:Fix typo. Include our own input in user history.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:a9af2b1f5ec3a25a28473437898b4bbff3f5d22dd528987c9701377c2fc18cb1
User & Date: ajv-899-334-8894@vsta.org 2018-03-12 14:59:48
Context
2018-03-13
02:29
Blacklist in its own file, update from it on demand. check-in: 93ec53def7 user: ajv-899-334-8894@vsta.org tags: master, trunk
2018-03-12
14:59
Fix typo. Include our own input in user history. check-in: a9af2b1f5e user: ajv-899-334-8894@vsta.org tags: master, trunk
14:59
Long cookie life check-in: ba6eb42033 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to telnet.py.

222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
...
257
258
259
260
261
262
263



264
265
266
267
268
269
270
	t.start()

	# Endless input loop
	while True:
	    l = cleanup(self.readln()).strip()
	    if not l:
		self.writeln("Current recipient: %s" %
		    (self,curwho or "(none)",))
		continue

	    # Session commands
	    if l.startswith("::"):
		self.cmds(l[2:].split())
		continue

................................................................................

	    # Our account to use for this dest (our SMS, etc.)
	    assert self.curwho
	    acct = user.roster[self.curwho]

	    # Send via our account to them
	    acct.send(self.curwho, l)




# Telnet Daemon
#
# Accepts telnet connections, and spins up a separate thread
#  to talk to the user on that connection
class TelnetD(object):
    def __init__(self, cfg, approot):







|







 







>
>
>







222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
...
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
	t.start()

	# Endless input loop
	while True:
	    l = cleanup(self.readln()).strip()
	    if not l:
		self.writeln("Current recipient: %s" %
		    (self.curwho or "(none)",))
		continue

	    # Session commands
	    if l.startswith("::"):
		self.cmds(l[2:].split())
		continue

................................................................................

	    # Our account to use for this dest (our SMS, etc.)
	    assert self.curwho
	    acct = user.roster[self.curwho]

	    # Send via our account to them
	    acct.send(self.curwho, l)

	    # Also add to our own viewed history
	    user.add(False, self.curwho, l)

# Telnet Daemon
#
# Accepts telnet connections, and spins up a separate thread
#  to talk to the user on that connection
class TelnetD(object):
    def __init__(self, cfg, approot):