this.view.networkConnecting();
-
- _kiwi.gateway.set('kiwi_server', _kiwi.app.kiwi_server);
- _kiwi.gateway.connect(function() {
- that.makeConnection(new_connection_event);
- });
+ // If not connected already, connect then send the IRC connect info
+ if (!_kiwi.gateway.isConnected()) {
+ _kiwi.gateway.set('kiwi_server', _kiwi.app.kiwi_server);
+ _kiwi.gateway.connect(function() {
+ that.makeConnection(new_connection_event);
+ });
+
+ } else {
+ this.makeConnection(new_connection_event);
+ }
},