diff options
author | James Booth <boothj5@gmail.com> | 2014-04-13 20:41:11 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-13 20:41:11 +0100 |
commit | a4a23fdf689608636e1d7fe049be081728f69e46 (patch) | |
tree | fc9189e26822dd37fff7bf07cba593f8bd9a7cb2 /src/config | |
parent | bc6f8ceb3aa62c714f09acb7dc1dec30580ab720 (diff) | |
download | profani-tty-a4a23fdf689608636e1d7fe049be081728f69e46.tar.gz |
Added /log rotate option
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 4 | ||||
-rw-r--r-- | src/config/preferences.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 6f085ba3..7327cd8e 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -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; diff --git a/src/config/preferences.h b/src/config/preferences.h index 2c783f4d..266fccc5 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -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 { |