mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 05:26:22 +00:00
Added /log rotate option
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user