pull/1/head
Matthew Hodgson 2015-07-17 18:13:58 +01:00
parent 214ef4b4ce
commit ddb426095e
1 changed files with 10 additions and 0 deletions

View File

@ -42,6 +42,16 @@ var commands = {
return reject("Usage: /nick <display_name>");
},
// Change the room topic
topic: function(room_id, args) {
if (args) {
return success(
MatrixClientPeg.get().setRoomTopic(room_id, args)
);
}
return reject("Usage: /topic <topic>");
},
// Invite a user
invite: function(room_id, args) {
if (args) {