Fix nickname in use handling in network.js
authorJack Allnutt <m2ys4u@gmail.com>
Tue, 4 Jun 2013 15:31:32 +0000 (16:31 +0100)
committerJack Allnutt <m2ys4u@gmail.com>
Tue, 4 Jun 2013 15:31:32 +0000 (16:31 +0100)
client/assets/src/models/network.js

index 88cc854b150a355dca86fc39e1c82fef0e351834..e4320f12422e4c03b446ac45a64d013b6707e3fc 100644 (file)
             break;
         case 'nickname_in_use':
             this.panels.server.addMsg(' ', '== The nickname ' + event.nick + ' is already in use. Please select a new nickname', 'status');
-            if (this.panels.server !== thia.panels.active) {
+            if (this.panels.server !== this.panels.active) {
                 _kiwi.app.message.text('The nickname "' + event.nick + '" is already in use. Please select a new nickname');
             }
 
             // Only show the nickchange component if the controlbox is open
-            if (that.controlbox.$el.css('display') !== 'none') {
+            if (_kiwi.app.controlbox.$el.css('display') !== 'none') {
                 (new _kiwi.view.NickChangeBox()).render();
             }