summary refs log tree commit diff
path: root/cmdclient/console.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-26 10:33:32 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-26 10:33:32 +0100
commitb01aeac842af27cb626a2052f358fe0ea25eaa7f (patch)
treefeebb74986533487afe19e91f3e52437d3fd1fad /cmdclient/console.py
parentAdjusted webclient to use new state paths. Updated membership msg template to... (diff)
downloadsynapse-b01aeac842af27cb626a2052f358fe0ea25eaa7f.tar.xz
URL renaming: Room state keys now use the format /rooms/$roomid/state/$event_type/$state_key. cmdclient: Fixed double urlencoding on leave command. Stream from the END since START now produces an error on /events.
Diffstat (limited to '')
-rwxr-xr-xcmdclient/console.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdclient/console.py b/cmdclient/console.py
index 3c4c69c276..0fbb822010 100755
--- a/cmdclient/console.py
+++ b/cmdclient/console.py
@@ -61,7 +61,7 @@ class SynapseCmd(cmd.Cmd):
             "send_delivery_receipts": "on"
         }
         self.path_prefix = "/matrix/client/api/v1"
-        self.event_stream_token = "START"
+        self.event_stream_token = "END"
         self.prompt = ">>> "
 
     def do_EOF(self, line):  # allows CTRL+D quitting
@@ -402,7 +402,7 @@ class SynapseCmd(cmd.Cmd):
         """Leaves a room: "leave <roomid>" """
         try:
             args = self._parse(line, ["roomid"], force_keys=True)
-            self._do_membership_change(urllib.quote(args["roomid"]), "leave", self._usr())
+            self._do_membership_change(args["roomid"], "leave", self._usr())
         except Exception as e:
             print e