<commit_before>'use strict';

module.exports = function(config, ircbot) {
	if (!('username' in config) || !('password' in config)) {
		return;
	}
	
	ircbot.addListener('registered', function() {
		ircbot.say('USERSERV', 'LOGIN ' + config.username + ' ' + config.password);
	});
};<commit_msg>Do not attempt to login with empty username or password<commit_after>'use strict';

module.exports = function(config, ircbot) {
	if (
		!('username' in config) || !config.username ||
		!('password' in config) || !config.password
	) {
		return;
	}
	
	ircbot.addListener('registered', function() {
		ircbot.say('USERSERV', 'LOGIN ' + config.username + ' ' + config.password);
	});
};
{'fraction_non_alphanumeric': 0.18424962852897475, 'fraction_numerical': 0.0, 'mean_word_length': 4.663865546218488, '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': '181968', 'n_tokens_mistral': 238, 'n_tokens_neox': 221, 'n_words': 49}