diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-24 00:25:36 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-24 00:25:36 +0000 |
commit | 841cd8d0cf7767eae63300bbf5f98ebe65b02a71 (patch) | |
tree | 5f80b018fee2d85498d174c663b03cef8043311c /src/fe-common | |
parent | afa4292466c6de093d0cdf359a91160886933507 (diff) | |
download | irssi-841cd8d0cf7767eae63300bbf5f98ebe65b02a71.zip |
Cleanup option handling.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4510 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 5 | ||||
-rw-r--r-- | src/fe-common/core/fe-common-core.h | 1 |
2 files changed, 5 insertions, 1 deletions
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); |