Client: Passing the default nick to a new IRC connection
authorDarren <darren@darrenwhitlen.com>
Sat, 22 Jun 2013 13:21:33 +0000 (14:21 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 22 Jun 2013 13:21:33 +0000 (14:21 +0100)
client/assets/src/models/gateway.js

index 7074108987c5600c95d73388960b14aecc0a7ec9..8efb7e743be554afef1b39dbb4e582118ca32bae 100644 (file)
@@ -233,7 +233,7 @@ _kiwi.model.Gateway = function () {
 \r
             if (!err) {\r
                 if (!_kiwi.app.connections.getByConnectionId(server_num)){\r
-                    connection = new _kiwi.model.Network({connection_id: server_num});\r
+                    connection = new _kiwi.model.Network({connection_id: server_num, nick: h.nick});\r
                     _kiwi.app.connections.add(connection);\r
                 }\r
 \r