function onDisconnect(event) {
$.each(this.panels.models, function (index, panel) {
- panel.addMsg('', styleText('network_disconnected', {text: translateText('client_models_network_disconnected', [])}), 'action quit');
+ if (!panel.isApplet()) {
+ panel.addMsg('', styleText('network_disconnected', {text: translateText('client_models_network_disconnected', [])}), 'action quit');
+ }
});
}
con.on('close', function IrcConnectionClose() {
// TODO: Can we get a better reason for the disconnection? Was it planned?
- that.sendIrcCommand('disconnect', {server: con.con_num, reason: 'disconnected'});
+ that.sendIrcCommand('disconnect', {connection_id: con.con_num, reason: 'disconnected'});
that.irc_connections[con_num] = null;
global.servers.removeConnection(this);