use Mojo::IOLoop;
+use DXDebug;
use Msg;
use IntMsg;
use Internet;
use ExtMsg;
use AGWConnect;
use AGWMsg;
-use DXDebug;
use DXLog;
use DXLogPrint;
use DXUtil;
return;
}
if ($bumpexisting) {
- my $ip = $conn->peerhost || 'unknown';
+ my $ip = $dxchan->hostname;
$dxchan->send_now('D', DXM::msg($lang, 'conbump', $call, $ip));
LogDbg('DXCommand', "$call bumped off by $ip, disconnected");
$dxchan->disconnect;
my $lock = $user->lockout if $user;
if ($baseuser && $baseuser->lockout || $lock) {
if (!$user || !defined $lock || $lock) {
- my $host = $conn->peerhost || "unknown";
+ my $host = $conn->peerhost;
LogDbg('DXCommand', "$call on $host is locked out, disconnected");
$conn->disconnect;
return;