pesky crash fix

This commit is contained in:
Evert Prants 2017-01-05 20:24:07 +02:00
parent e3f9610c17
commit 73610f6c18
1 changed files with 5 additions and 0 deletions

View File

@ -145,6 +145,11 @@ io.sockets.on('connection', function (socket) {
socket.emit('act_client', {type: 'connect_message', message: 'Connecting to server..', error: false});
if (connectiondata.port === null || connectiondata.server === null) {
return socket.emit('act_client', {type: 'connect_message', server: connectiondata.server,
message: 'Failed to connect to the server!', error: true});
}
let newConnection = new irclib.IRCConnection(connectiondata, config.client,
{
authenticationSteps: [