Added /log rotate option

This commit is contained in:
James Booth
2014-04-13 20:41:11 +01:00
parent bc6f8ceb3a
commit a4a23fdf68
7 changed files with 58 additions and 15 deletions

View File

@@ -393,6 +393,7 @@ _get_group(preference_t pref)
case PREF_CHLOG:
case PREF_GRLOG:
case PREF_OTR_LOG:
case PREF_LOG_ROTATE:
return PREF_GROUP_LOGGING;
case PREF_AUTOAWAY_CHECK:
case PREF_AUTOAWAY_MODE:
@@ -464,6 +465,8 @@ _get_key(preference_t pref)
return "otr";
case PREF_OTR_WARN:
return "otr.warn";
case PREF_LOG_ROTATE:
return "rotate";
default:
return NULL;
}
@@ -477,6 +480,7 @@ _get_default_boolean(preference_t pref)
case PREF_TITLEBAR:
case PREF_OTR_WARN:
case PREF_AUTOAWAY_CHECK:
case PREF_LOG_ROTATE:
return TRUE;
default:
return FALSE;

View File

@@ -62,7 +62,8 @@ typedef enum {
PREF_AUTOAWAY_MESSAGE,
PREF_CONNECT_ACCOUNT,
PREF_OTR_LOG,
PREF_OTR_WARN
PREF_OTR_WARN,
PREF_LOG_ROTATE
} preference_t;
typedef struct prof_alias_t {