logon_date = formatDate(logon_date);
panel.addMsg(event.nick, 'idle for ' + idle_time + ', signed on ' + logon_date, 'whois');
+ } else if (event.away_reason) {
+ panel.addMsg(event.nick, 'Away: ' + event.away_reason, 'whois');
} else {
panel.addMsg(event.nick, 'idle for ' + idle_time, 'whois');
}
RPL_LUSERME: '255',
RPL_LOCALUSERS: '265',
RPL_GLOBALUSERS: '266',
+ RPL_AWAY: '301',
RPL_WHOISREGNICK: '307',
RPL_WHOISUSER: '311',
RPL_WHOISSERVER: '312',
msg: command.trailing
});
},
+ 'RPL_AWAY': function (command) {
+ this.irc_connection.emit('user ' + command.params[1] + ' whoisaway', {
+ nick: command.params[1],
+ reason: command.trailing
+ });
+ },
'RPL_WHOISUSER': function (command) {
this.irc_connection.emit('user ' + command.params[1] + ' whoisuser', {
nick: command.params[1],
away: onAway,\r
quit: onQuit,\r
whoisuser: onWhoisUser,\r
+ whoisaway: onWhoisAway,\r
whoisoperator: onWhoisOperator,\r
whoischannels: onWhoisChannels,\r
whoismodes: onWhoisModes,\r
});\r
};\r
\r
+function onWhoisAway(event) {\r
+ this.irc_connection.clientEvent('whois', {\r
+ nick: event.nick,\r
+ away_reason: event.reason,\r
+ end: false\r
+ });\r
+};\r
+\r
function onWhoisServer(event) {\r
this.irc_connection.clientEvent('whois', {\r
nick: event.nick,\r