var msg = data.msg.split(" ", 2);
switch (msg[0]) {
case 'PING':
+ if(typeof msg[1] === 'undefined') msg[1] = '';
gateway.notice(data.nick, '\001PING ' + msg[1] + '\001');
break;
case 'TIME':
return false;
});
$('a.connect').click(function(){ $('.formconnectwindow').submit(); return false; });
- $('a.chan').live('dblclick', function() {
+ $('a.chan').live('click', function() {
front.joinChannel($(this).text());
return false;
});
if (msg.trailing.substr(1, 6) === 'ACTION') {
websocket.emit('message', {event: 'action', nick: msg.nick, ident: msg.ident, hostname: msg.hostname, channel: msg.params.trim(), msg: msg.trailing.substr(1, msg.trailing.length - 2)});
} else if (msg.trailing.substr(1, 7) === 'VERSION') {
- console.log('NOTICE ' + msg.nick + ':\001VERSION KiwiIRC\001\r\n');
- ircSocket.write('NOTICE ' + msg.nick + ':\001VERSION KiwiIRC\001\r\n');
+ ircSocket.write('NOTICE ' + msg.nick + ' :\001VERSION KiwiIRC\001\r\n');
} else {
websocket.emit('message', {event: 'ctcp_request', nick: msg.nick, ident: msg.ident, hostname: msg.hostname, channel: msg.params.trim(), msg: msg.trailing.substr(1, msg.trailing.length - 2)});
}