Enable timestamps by default and change default format to include seconds
This commit is contained in:
parent
24de2899ec
commit
02fd5a2aff
|
@ -746,11 +746,12 @@ load_config (void)
|
||||||
prefs.url_grabber = 1;
|
prefs.url_grabber = 1;
|
||||||
prefs.url_grabber_limit = 100; /* 0 means unlimited */
|
prefs.url_grabber_limit = 100; /* 0 means unlimited */
|
||||||
prefs.text_search_follow = 1;
|
prefs.text_search_follow = 1;
|
||||||
|
prefs.timestamp = 1;
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
prefs.identd = 1;
|
prefs.identd = 1;
|
||||||
#endif
|
#endif
|
||||||
strcpy (prefs.spell_langs, g_getenv ("LC_ALL") ? g_getenv ("LC_ALL") : "en_US");
|
strcpy (prefs.spell_langs, g_getenv ("LC_ALL") ? g_getenv ("LC_ALL") : "en_US");
|
||||||
strcpy (prefs.stamp_format, "[%H:%M] ");
|
strcpy (prefs.stamp_format, "[%H:%M:%S] ");
|
||||||
strcpy (prefs.timestamp_log_format, "%b %d %H:%M:%S ");
|
strcpy (prefs.timestamp_log_format, "%b %d %H:%M:%S ");
|
||||||
strcpy (prefs.logmask, "%n-%c.log");
|
strcpy (prefs.logmask, "%n-%c.log");
|
||||||
strcpy (prefs.nick_suffix, ",");
|
strcpy (prefs.nick_suffix, ",");
|
||||||
|
|
|
@ -744,7 +744,7 @@ get_stamp_str (char *fmt, time_t tim, char **ret)
|
||||||
if (!len)
|
if (!len)
|
||||||
{
|
{
|
||||||
/* use failsafe format until a correct one is specified */
|
/* use failsafe format until a correct one is specified */
|
||||||
len = strftime (dest, sizeof (dest), "[%H:%M]", localtime (&tim));
|
len = strftime (dest, sizeof (dest), "[%H:%M:%S]", localtime (&tim));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (len)
|
if (len)
|
||||||
|
|
Loading…
Reference in New Issue