From 841cd8d0cf7767eae63300bbf5f98ebe65b02a71 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Thu, 24 May 2007 00:25:36 +0000 Subject: Cleanup option handling. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4510 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-common-core.c | 5 ++++- src/fe-common/core/fe-common-core.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/fe-common') diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index bf7a658b..688f40df 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -131,7 +131,7 @@ static void sig_channel_destroyed(CHANNEL_REC *channel) MODULE_DATA_UNSET(channel); } -void fe_common_core_init(void) +void fe_common_core_register_options(void) { static struct poptOption version_options[] = { { NULL, '\0', POPT_ARG_CALLBACK, (void *)&print_version, '\0', NULL }, @@ -158,7 +158,10 @@ void fe_common_core_init(void) cmdline_nick = NULL; cmdline_hostname = NULL; args_register(options); +} +void fe_common_core_init(void) +{ settings_add_bool("lookandfeel", "timestamps", TRUE); settings_add_level("lookandfeel", "timestamp_level", "ALL"); settings_add_time("lookandfeel", "timestamp_timeout", "0"); diff --git a/src/fe-common/core/fe-common-core.h b/src/fe-common/core/fe-common-core.h index 1c12047b..7f3078de 100644 --- a/src/fe-common/core/fe-common-core.h +++ b/src/fe-common/core/fe-common-core.h @@ -1,6 +1,7 @@ #ifndef __FE_COMMON_CORE_H #define __FE_COMMON_CORE_H +void fe_common_core_register_options(void); void fe_common_core_init(void); void fe_common_core_deinit(void); void fe_common_core_finish_init(void); -- cgit v1.2.3