X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=5e6c722646867868d7eb47171fc0fbdab6ab9fb5;hb=765add8acca099e69f2b2cde2bb58a48a00852d3;hp=ff173906bebef9945743b6e5eeb089bca430a886;hpb=10cd15ab627d2df5fbce79eb1388424051309f1a;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index ff173906..5e6c7226 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -75,6 +75,10 @@ sub start my $call = $self->{call}; my $name = $user->{name}; + # log it + my $host = $self->{conn}->{peerhost} || "unknown"; + Log('DXCommand', "$call connected from $host"); + $self->{name} = $name ? $name : $call; $self->send($self->msg('l2',$self->{name})); $self->send_file($main::motd) if (-e $main::motd); @@ -113,8 +117,6 @@ sub start $user->qra(DXBearing::lltoqra($lat, $long)) if (defined $lat && defined $long); } - Log('DXCommand', "$call connected"); - # send prompts and things my $info = Route::cluster(); $self->send("Cluster:$info");