<commit_before>'use strict';

module.exports = function(ircbot) {
	// Whois
	ircbot.addListener('whois', function(info) {
		console.info(info.nick, 'is', info.user + '@' + info.host, '*', info.realname);
		console.info(info.nick, 'on', info.channels.join(' '));
		console.info(info.nick, 'using', info.server, info.serverinfo);
		
		if ('away' in info) {
			console.info(info.nick, 'is away:', info.away);
		}

		if ('secure_connection' in info) {
			console.info(info.nick, 'is using a secure connection');
		}

		if ('actual_host' in info) {
			console.info(info.nick, 'actually using host', info.actual_host);
		}

		if ('idle' in info || 'signon' in info) {
			console.info(info.nick,
				(info.idle ? ('has been idle' + info.idle + 'sec') : '') +
				(info.idle && info.signon ? ', ' : '') +
				(info.signon ? ('signed on ' + info.signon) : '')
			);
		}
		
		if ('account' in info && 'accountinfo' in info) {
			console.info(info.nick, info.accountinfo, info.account);<commit_msg>Fix for missing channels in whois<commit_after>'use strict';

module.exports = function(ircbot) {
	// Whois
	ircbot.addListener('whois', function(info) {
		console.info(info.nick, 'is', info.user + '@' + info.host, '*', info.realname);
		
		if ('channels' in info) {
			console.info(info.nick, 'on', info.channels.join(' '));
		}
		
		console.info(info.nick, 'using', info.server, info.serverinfo);
		
		if ('away' in info) {
			console.info(info.nick, 'is away:', info.away);
		}

		if ('secure_connection' in info) {
			console.info(info.nick, 'is using a secure connection');
		}

		if ('actual_host' in info) {
			console.info(info.nick, 'actually using host', info.actual_host);
		}

		if ('idle' in info || 'signon' in info) {
			console.info(info.nick,
				(info.idle ? ('has been idle' + info.idle + 'sec') : '') +
				(info.idle && info.signon ? ', ' : '') +
				(info.signon ? ('signed on ' + info.signon) : '')
			);
		}
		
		if ('account' in info && 'accountinfo' in info) {
			console.info(info.nick, info.accountinfo, info.account);
{'fraction_non_alphanumeric': 0.19478603049680276, 'fraction_numerical': 0.0, 'mean_word_length': 3.450765864332604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1024535', 'n_tokens_mistral': 815, 'n_tokens_neox': 721, 'n_words': 160}