diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-12 12:03:00 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-12 12:03:00 +0000 |
commit | e6bf76ed1177f753bbb85dbe77952b82358a76f6 (patch) | |
tree | 5835ceacb87b4512d580d120c867d5cb3c412188 /src/irc/core/irc-servers-setup.c | |
parent | 66e8aa2c74fd98e8c593cbb97c21cace27d0c4b2 (diff) | |
download | irssi-e6bf76ed1177f753bbb85dbe77952b82358a76f6.zip |
Don't try to set alternate_nick to any default value, it's not very useful
and it didn't work properly if nick was 9 chars with last char being '_'
(not very likely though :). Also handle properly the situation where nick
and alternate_nick are the same.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2311 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 | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/irc/core/irc-servers-setup.c b/src/irc/core/irc-servers-setup.c index 8606a470..e661083a 100644 --- a/src/irc/core/irc-servers-setup.c +++ b/src/irc/core/irc-servers-setup.c @@ -112,19 +112,6 @@ static void init_userinfo(void) nick = settings_get_str("nick"); } - /* alternate nick */ - set = settings_get_str("alternate_nick"); - if (set == NULL || *set == '\0') { - if (strlen(nick) < 9) - str = g_strconcat(nick, "_", NULL); - else { - str = g_strdup(nick); - str[strlen(str)-1] = '_'; - } - settings_set_str("alternate_nick", str); - g_free(str); - } - /* host name */ set = settings_get_str("hostname"); if (set == NULL || *set == '\0') { |