Minor tweak so as to ensure changes to the nick variables are always saved. Shouldn't fix anything anyone was seeing.

This commit is contained in:
ian%hixie.ch 2004-03-15 13:24:28 +00:00
Родитель 169ba19b7e
Коммит 4fe0a7d6b0
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -553,12 +553,11 @@ sub on_nick_taken {
@nicks = (@nicks[0..$nickFirstTried], $new, @nicks[$nickFirstTried+1..$#nicks]);
$nick += 1; # try the new nick now
$nickFirstTried = $nick;
&debug("saving nicks: @nicks");
&Configuration::Save($cfgfile, &configStructure(\@nicks));
}
}
&debug("now going to try nick '$nicks[$nick]'");
&Configuration::Save($cfgfile, &configStructure(\$nick, \@nicks));
$self->nick($nicks[$nick]);
}