[nexuiz-commits] r8673 - trunk/server/rcon2irc

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Feb 25 14:01:13 EST 2010


Author: merlijn
Date: 2010-02-25 14:01:13 -0500 (Thu, 25 Feb 2010)
New Revision: 8673

Modified:
   trunk/server/rcon2irc/fastest_lap.pl
Log:
oops, had a little bug

Modified: trunk/server/rcon2irc/fastest_lap.pl
===================================================================
--- trunk/server/rcon2irc/fastest_lap.pl	2010-02-25 18:27:51 UTC (rev 8672)
+++ trunk/server/rcon2irc/fastest_lap.pl	2010-02-25 19:01:13 UTC (rev 8673)
@@ -3,7 +3,7 @@
 # chat: Nexuiz server -> IRC channel, fastest record in race and ctf
 [ dp => q{:recordset:(\d+):(.*)} => sub {
 	my ($id, $record) = @_;
-	my $nick = $store{"playernick_byid_$id"} || '(console)';
+	my $nick = $store{"playernick_byid_$id"};
 	
 	my $time;
 	if ($record < 60) {
@@ -15,9 +15,9 @@
 	}
 	
 	if ($store{map} =~ m/^ctf_/) {
-		out irc => 0, "PRIVMSG $config{irc_channel} :* \00306record\017 $nick\017 set the fastest flag capture record with \00304$time\017 on \00304$store{map}\017";
+		out irc => 0, "PRIVMSG $config{irc_channel} :* \00306record\017 $nick\017 set the fastest flag capture record with \00304$time\017 on \00304" . $store{map} . "\017";
 	} else {
-		out irc => 0, "PRIVMSG $config{irc_channel} :* \00306record\017 $nick\017 set the fastest lap record with \00304$time\017 on \00304$store{map}\017";
+		out irc => 0, "PRIVMSG $config{irc_channel} :* \00306record\017 $nick\017 set the fastest lap record with \00304$time\017 on \00304" . $store{map} . "\017";
 	}
 	
 	return 0;



More information about the nexuiz-commits mailing list