From 001372ec3929b34534196c85a6ff8d351214c4c2 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 17 Jul 2015 11:13:05 +0100 Subject: [PATCH] Fix nick changes --- src/SlashCommands.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SlashCommands.js b/src/SlashCommands.js index e24de861..de9f5c5b 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -35,7 +35,9 @@ var commands = { // Change your nickname nick: function(room_id, args) { if (args) { - return MatrixClientPeg.get().setDisplayName(args); + return success( + MatrixClientPeg.get().setDisplayName(args) + ); } return reject("Usage: /nick "); },