Implemented /autoaway mode idle

This commit is contained in:
James Booth
2012-12-01 17:46:25 +00:00
parent f7d0bcba4c
commit fae848ea64
6 changed files with 46 additions and 16 deletions

View File

@@ -389,7 +389,11 @@ prefs_get_autoaway_message(void)
void
prefs_set_autoaway_message(gchar *value)
{
g_key_file_set_string(prefs, "autoaway", "message", value);
if (value == NULL) {
g_key_file_remove_key(prefs, "autoaway", "message", NULL);
} else {
g_key_file_set_string(prefs, "autoaway", "message", value);
}
_save_prefs();
}