summary refs log tree commit diff
path: root/synapse/appservice
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-09 12:03:37 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-09 12:03:37 +0000
commitac3183caaa66b750996d90c0ac9ed430f623909c (patch)
tree3cddc8ef5230ac7e206fd0aa0d308feffae79f10 /synapse/appservice
parentAdd errcodes for appservice registrations. (diff)
downloadsynapse-ac3183caaa66b750996d90c0ac9ed430f623909c.tar.xz
Register a user account for the AS when the AS registers. Add 'sender' column to AS table.
Diffstat (limited to 'synapse/appservice')
-rw-r--r--synapse/appservice/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py
index 46d46a5a48..fb9bfffe5d 100644
--- a/synapse/appservice/__init__.py
+++ b/synapse/appservice/__init__.py
@@ -35,10 +35,11 @@ class ApplicationService(object):
     NS_LIST = [NS_USERS, NS_ALIASES, NS_ROOMS]
 
     def __init__(self, token, url=None, namespaces=None, hs_token=None,
-                 txn_id=None):
+                 sender=None, txn_id=None):
         self.token = token
         self.url = url
         self.hs_token = hs_token
+        self.sender = sender
         self.namespaces = self._check_namespaces(namespaces)
         self.txn_id = txn_id