mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-04-01 22:48:12 +00:00
Add a check to avoid some warnings
This commit is contained in:
parent
fd313797e4
commit
cde5242ea2
@ -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" .
|
||||
|
Loading…
Reference in New Issue
Block a user