From: merlijn Date: Sat, 25 Aug 2012 12:15:01 +0000 (+0200) Subject: Add a check to avoid some warnings X-Git-Tag: xonotic-v0.7.0~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cde5242ea2a7e8efce2a72cf9c1fcbcdbf95fe61;p=xonotic%2Fxonotic.git Add a check to avoid some warnings --- diff --git a/server/rcon2irc/joinsparts.pl b/server/rcon2irc/joinsparts.pl index 686244fb..62eb23c0 100644 --- a/server/rcon2irc/joinsparts.pl +++ b/server/rcon2irc/joinsparts.pl @@ -75,7 +75,7 @@ sub get_player_count my $pj = $store{plugin_joinsparts}; my $ip = $store{"playerip_byid_$id"}; - my ($cn) = $pj->{geo}->LookUp($ip) if ($pj->{irc_show_country} && $ip ne 'bot'); + my ($cn) = $pj->{geo}->LookUp($ip) if ($pj->{irc_show_country} && $ip && $ip ne 'bot'); if ($pj->{irc_announce_parts} && defined $store{"playernick_byid_$id"} && $store{"playerip_byid_$id"} ne 'bot') { out irc => 0, "PRIVMSG $config{irc_channel} :\00304- part\017: " . $store{"playernick_byid_$id"} . "\017" .