get a nick before pinging, servers don't seem to like it otherwise and return 451 (ERR_NOTREGISTERED) instead of a PONG

This commit is contained in:
MrBougo 2010-09-07 16:46:44 +02:00
parent e4dbbe2f30
commit ee5be7230f

View File

@ -1727,7 +1727,7 @@ schedule sub {
my ($timer) = @_;
# log on to IRC when needed
if(exists $store{dp_hostname} && !exists $store{irc_logged_in})
if(exists $store{dp_hostname} && !exists $store{irc_seen_welcome})
{
$store{irc_nick_requested} = $config{irc_nick};
out irc => 1, "NICK $config{irc_nick}", "USER $config{irc_user} localhost localhost :$store{dp_hostname}";