From 512df0ca6b0cf18d154d085f656db44c1ec426a6 Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Mon, 20 May 2013 06:33:11 -0500 Subject: [PATCH] Support the `nameTaken` JSON event --- js/client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index b2f81ab15..24835307b 100644 --- a/js/client.js +++ b/js/client.js @@ -582,7 +582,11 @@ } }, disconnect: function () {}, - nameTaken: function (data) {}, + nameTaken: function (data) { + // Legacy -- but still how the server communicates that a + // name is taken, so we need to support it for now. + app.addPopup(LoginPopup, {reason: data.reason || ''}); + }, command: function (message) { // Legacy self.trigger('response:'+message.command, message);