[nexuiz-commits] r6598 - trunk/server/rcon2irc
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Apr 27 14:03:01 EDT 2009
Author: div0
Date: 2009-04-27 14:03:00 -0400 (Mon, 27 Apr 2009)
New Revision: 6598
Modified:
trunk/server/rcon2irc/rcon2irc.pl
Log:
better detect teamplay
Modified: trunk/server/rcon2irc/rcon2irc.pl
===================================================================
--- trunk/server/rcon2irc/rcon2irc.pl 2009-04-26 20:03:39 UTC (rev 6597)
+++ trunk/server/rcon2irc/rcon2irc.pl 2009-04-27 18:03:00 UTC (rev 6598)
@@ -685,12 +685,6 @@
# Nexuiz specific parsing of some server messages
-sub nex_is_teamplay($)
-{
- my ($map) = @_;
- return $map =~ /^(?:kh|ctf|tdm|dom)_/;
-}
-
sub nex_slotsstring()
{
my $slotsstr = "";
@@ -1469,7 +1463,7 @@
return if not exists $store{scores};
my $s = $store{scores};
delete $store{scores};
- my $teams_matter = nex_is_teamplay($s->{map});
+ my $teams_matter = defined $s->{teams};
my @t = ();
my @p = ();
More information about the nexuiz-commits
mailing list