fixed msg when changing nick (courtesy of Surb and/or -z-)
authormand1nga <mand1nga@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 10 Feb 2009 00:38:00 +0000 (00:38 +0000)
committermand1nga <mand1nga@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 10 Feb 2009 00:38:00 +0000 (00:38 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5817 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

server/rcon2irc/rcon2irc.pl

index ddeea89..a7711d5 100755 (executable)
@@ -1241,7 +1241,7 @@ sub cond($)
        [ dp => q{:name:(\d+):(.*)} => sub {
                my ($id, $nick) = @_;
                $nick = color_dp2irc $nick;
-               my $oldnick = $store{"playernick_$id"};
+               my $oldnick = $store{"playernick_byid_$id"};
                out irc => 0, "PRIVMSG $config{irc_channel} :* $oldnick\017 is now known as $nick";
                $store{"playernick_byid_$id"} = $nick;
                return 0;