Support the nameTaken JSON event

This commit is contained in:
Cathy J. Fitzpatrick
2013-05-20 06:33:11 -05:00
parent 85cd98bd89
commit 512df0ca6b

View File

@@ -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);