Fix nick changes

pull/1/head
Kegan Dougal 2015-07-17 11:13:05 +01:00
parent 006907e52f
commit 001372ec39
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ var commands = {
// Change your nickname // Change your nickname
nick: function(room_id, args) { nick: function(room_id, args) {
if (args) { if (args) {
return MatrixClientPeg.get().setDisplayName(args); return success(
MatrixClientPeg.get().setDisplayName(args)
);
} }
return reject("Usage: /nick <display_name>"); return reject("Usage: /nick <display_name>");
}, },