Use defaults for /statuses commands

This commit is contained in:
James Booth
2014-01-19 17:20:31 +00:00
parent 5f25d99357
commit 69f2f4a16f
6 changed files with 63 additions and 3 deletions

View File

@@ -393,6 +393,7 @@ _get_default_boolean(preference_t pref)
case PREF_STATUSES:
case PREF_AUTOAWAY_CHECK:
case PREF_OTR_WARN:
case PREF_STATUSES_MUC:
return TRUE;
default:
return FALSE;
@@ -408,6 +409,9 @@ _get_default_string(preference_t pref)
return "off";
case PREF_OTR_LOG:
return "redact";
case PREF_STATUSES_CONSOLE:
case PREF_STATUSES_CHAT:
return "all";
default:
return NULL;
}