fix neg ascores
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 7 Feb 2009 10:43:23 +0000 (10:43 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 7 Feb 2009 10:43:23 +0000 (10:43 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5796 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

server/rcon2irc/rcon2irc.pl

index c546472..ddeea89 100755 (executable)
@@ -1371,7 +1371,7 @@ sub cond($)
        } ],
 
        # scores: Nexuiz server -> IRC channel, new format
-       [ dp => q{:player:see-labels:(\d+)[-0-9,]*:(\d+):(\d+):(\d+):(.*)} => sub {
+       [ dp => q{:player:see-labels:(-?\d+)[-0-9,]*:(\d+):(\d+):(\d+):(.*)} => sub {
                my ($frags, $time, $team, $id, $name) = @_;
                return if not exists $store{scores};
                push @{$store{scores}{players}}, [$frags, $team, $name];
@@ -1379,7 +1379,7 @@ sub cond($)
        } ],
 
        # scores: Nexuiz server -> IRC channel (CTF), new format
-       [ dp => q{:teamscores:see-labels:(\d+)[-0-9,]*:(\d+)} => sub {
+       [ dp => q{:teamscores:see-labels:(-?\d+)[-0-9,]*:(\d+)} => sub {
                my ($frags, $team) = @_;
                return if not exists $store{scores};
                $store{scores}{teams}{$team} = $frags;