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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jan 3 14:54:58 EST 2010


Author: fruitiex
Date: 2010-01-03 14:54:57 -0500 (Sun, 03 Jan 2010)
New Revision: 8473

Modified:
   trunk/server/rcon2irc/joinsparts.pl
Log:
joinsparts.pl plugin update by merlijn


Modified: trunk/server/rcon2irc/joinsparts.pl
===================================================================
--- trunk/server/rcon2irc/joinsparts.pl	2010-01-03 19:16:16 UTC (rev 8472)
+++ trunk/server/rcon2irc/joinsparts.pl	2010-01-03 19:54:57 UTC (rev 8473)
@@ -14,10 +14,12 @@
 # current code has been tested against version 0.8 of the Geo::IPfree module
 # You can obtain a copy here: http://search.cpan.org/~bricas/Geo-IPfree-0.8/lib/Geo/IPfree.pm
 # Place the 'Geo' dir in the same directory as this plugin or anywhere in @INC.
-if ($pj{irc_show_country}) { 
-	use Geo::IPfree; 
-	$pj{geo} = Geo::IPfree->new;
-	$pj{geo}->Faster; # Due to a relatively large amount of lookups, this is probably a good idea
+if ($pj{irc_show_country}) {
+	eval { 
+		require Geo::IPfree;
+		$pj{geo} = Geo::IPfree->new;
+		$pj{geo}->Faster; # Due to a relatively large amount of lookups, this is probably a good idea 
+	} or die "joinsparts.pl: requested countrynames, but can't load data, $@";
 } 
 
 $store{plugin_joinsparts} = \%pj; }



More information about the nexuiz-commits mailing list