From cde5242ea2a7e8efce2a72cf9c1fcbcdbf95fe61 Mon Sep 17 00:00:00 2001 From: merlijn Date: Sat, 25 Aug 2012 14:15:01 +0200 Subject: [PATCH] Add a check to avoid some warnings --- server/rcon2irc/joinsparts.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" . -- 2.39.2