honor irc_local when reconnecting too
authorRudolf Polzer <divVerent@alientrap.org>
Fri, 17 Sep 2010 10:51:14 +0000 (12:51 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Fri, 17 Sep 2010 10:51:14 +0000 (12:51 +0200)
server/rcon2irc/rcon2irc.pl

index 88a98ccc438c93dd4950f774248a8e99d34749b7..42909cc8636219dd450984a6695f0061a19891f4 100755 (executable)
@@ -862,7 +862,7 @@ sub irc_error()
                        return;
                        # this will keep irc_error_active
                }
-               $channels{irc} = new Channel::Line(new Connection::Socket(tcp => "" => $config{irc_server} => 6667));
+               $channels{irc} = new Channel::Line(new Connection::Socket(tcp => $config{irc_local} => $config{irc_server} => 6667));
                delete $store{$_} for grep { /^irc_/ } keys %store;
                $store{irc_nick} = "";
                schedule sub {