mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Cleanup option handling.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4510 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
afa4292466
commit
841cd8d0cf
7 changed files with 53 additions and 40 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue