summary refs log tree commit diff
path: root/cmdclient/console.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-26 17:22:10 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-26 17:22:10 +0100
commit6f0bba1934d866ab21038761aacb27a12f66c4f4 (patch)
tree8fdd0868de29108aa3de5a9bb524b516c343e326 /cmdclient/console.py
parentRespect 'limit' param in initialSync api (diff)
parentRemoved MessageRestServlet, use RoomSendEventRestServlet instead. Updated cmd... (diff)
downloadsynapse-6f0bba1934d866ab21038761aacb27a12f66c4f4.tar.xz
Merge branch 'client_server_url_rename' into develop
Diffstat (limited to 'cmdclient/console.py')
-rwxr-xr-xcmdclient/console.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmdclient/console.py b/cmdclient/console.py
index f997b7539c..4cb604e796 100755
--- a/cmdclient/console.py
+++ b/cmdclient/console.py
@@ -409,10 +409,9 @@ class SynapseCmd(cmd.Cmd):
     def do_send(self, line):
         """Sends a message. "send <roomid> <body>" """
         args = self._parse(line, ["roomid", "body"])
-        msg_id = "m%s" % int(time.time())
-        path = "/rooms/%s/messages/%s/%s" % (urllib.quote(args["roomid"]),
-                                             self._usr(),
-                                             msg_id)
+        txn_id = "txn%s" % int(time.time())
+        path = "/rooms/%s/send/m.room.message/%s" % (urllib.quote(args["roomid"]),
+                                             txn_id)
         body_json = {
             "msgtype": "m.text",
             "body": args["body"]