diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-17 05:44:45 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-17 05:44:45 +0000 |
commit | aac80846b89108414a81773ad4bcdaba4401663d (patch) | |
tree | 691e5da6003dcffcb0b67baad80ee4f638fc01a3 /src/irc/core/irc-servers-setup.c | |
parent | 78b3fb8d4a0ddb3942b549abca631cb54ecf4d06 (diff) | |
download | irssi-aac80846b89108414a81773ad4bcdaba4401663d.zip |
Settings are now stored in module-specific blocks. Irssi complains
about all unknown settings that are found inside those blocks.
Left backwards compatibility kludge which should be removed in 0.7.98.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1004 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-servers-setup.c')
-rw-r--r-- | src/irc/core/irc-servers-setup.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/irc/core/irc-servers-setup.c b/src/irc/core/irc-servers-setup.c index 4049eeda..ec07420e 100644 --- a/src/irc/core/irc-servers-setup.c +++ b/src/irc/core/irc-servers-setup.c @@ -95,16 +95,16 @@ static void init_userinfo(void) set = settings_get_str("real_name"); if (set == NULL || *set == '\0') { str = g_getenv("IRCNAME"); - iconfig_set_str("settings", "real_name", - str != NULL ? str : g_get_real_name()); + settings_set_str("real_name", + str != NULL ? str : g_get_real_name()); } /* username */ user_name = settings_get_str("user_name"); if (user_name == NULL || *user_name == '\0') { str = g_getenv("IRCUSER"); - iconfig_set_str("settings", "user_name", - str != NULL ? str : g_get_user_name()); + settings_set_str("user_name", + str != NULL ? str : g_get_user_name()); user_name = settings_get_str("user_name"); } @@ -113,8 +113,7 @@ static void init_userinfo(void) nick = settings_get_str("nick"); if (nick == NULL || *nick == '\0') { str = g_getenv("IRCNICK"); - iconfig_set_str("settings", "nick", - str != NULL ? str : user_name); + settings_set_str("nick", str != NULL ? str : user_name); nick = settings_get_str("nick"); } @@ -128,7 +127,7 @@ static void init_userinfo(void) str = g_strdup(nick); str[strlen(str)-1] = '_'; } - iconfig_set_str("settings", "alternate_nick", str); + settings_set_str("alternate_nick", str); g_free(str); } @@ -137,7 +136,7 @@ static void init_userinfo(void) if (set == NULL || *set == '\0') { str = g_getenv("IRCHOST"); if (str != NULL) - iconfig_set_str("settings", "hostname", str); + settings_set_str("hostname", str); } } |