webXMPP

Check-in [29dee4f7c7]
Login

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

Overview
Comment:Tidy a comment
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:29dee4f7c71862b2c130b6127aa0cdde3b0e4e4862f642e3da1845ea36094717
User & Date: ajv-899-334-8894@vsta.org 2018-01-18 00:30:28
Context
2018-01-18
00:31
Two features: SMS blacklist Adjust config now that we have two SMS config params (acceptable submitters for REST, and blacklist pattern) And yes, blacklisting of numbers, just a simple string match Also a telnet interface, so there's now CLI-friendly messaging. check-in: dd233913a4 user: ajv-899-334-8894@vsta.org tags: master, trunk
00:30
Tidy a comment check-in: 29dee4f7c7 user: ajv-899-334-8894@vsta.org tags: master, trunk
00:29
Deal with peers which are online/registered, but not pushing status. We should still see that they're online, as distinct from a peer who is entirely disconnected from XMPP. check-in: 848935f105 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to acct_sms.py.

100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115

    # Get sender's number
    phnum = fromwhom = msg.get("from")
    if not fromwhom:
	sys.stderr.write("Bad SMS with no sender: %s\n" % (msg,))
	return;

    # Note which phone # was used, so we can reply
    #  correctly
    u = a.user
    u.rgen += 1

    # If we have a nickname, use it
    if fromwhom in a.rbuddies:
	fromwhom = "sms:" + a.rbuddies[fromwhom]
	sys.stderr.write(" %s has nick %s\n" % (phnum, fromwhom))







|
<







100
101
102
103
104
105
106
107

108
109
110
111
112
113
114

    # Get sender's number
    phnum = fromwhom = msg.get("from")
    if not fromwhom:
	sys.stderr.write("Bad SMS with no sender: %s\n" % (msg,))
	return;

    # We're going to generate a new message

    u = a.user
    u.rgen += 1

    # If we have a nickname, use it
    if fromwhom in a.rbuddies:
	fromwhom = "sms:" + a.rbuddies[fromwhom]
	sys.stderr.write(" %s has nick %s\n" % (phnum, fromwhom))