<commit_before>"use strict";

exports.commands = ["away", "back"];

exports.input = function(network, chan, cmd, args) {
	let reason = "";

	if (cmd === "away") {
		reason = args.length > 0 ? args.join(" ") : " ";

		network.irc.raw("AWAY", reason);
	} else { // back command
		network.irc.raw("AWAY");
	}

	network.awayMessage = reason;

	this.save();<commit_msg>Fix "/away " not setting you away<commit_after>"use strict";

exports.commands = ["away", "back"];

exports.input = function(network, chan, cmd, args) {
	let reason = "";

	if (cmd === "away") {
		reason = args.join(" ") || " ";

		network.irc.raw("AWAY", reason);
	} else { // back command
		network.irc.raw("AWAY");
	}

	network.awayMessage = reason;

	this.save();
{'fraction_non_alphanumeric': 0.20930232558139536, 'fraction_numerical': 0.0013679890560875513, 'mean_word_length': 3.7225806451612904, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6929652', 'n_tokens_mistral': 271, 'n_tokens_neox': 249, 'n_words': 58}