X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=753f59f79e4788e5211c77353c3d891de8b38789;hb=2841b340579dae85808c5a571df3140b736c2fb2;hp=937bbfea034b21da0d447bdf95f3483a95ee9c6c;hpb=c3c15883cf25add24fc49e32eb0d17dce6839a62;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 937bbfea..753f59f7 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -68,11 +68,8 @@ sub new # routing, this must go out here to prevent race condx my $pkg = shift; my $call = shift; - my @rout = $main::routeroot->add_user($call, Route::here(1)); + my @rout = $main::routeroot->add_user($call, 1); - # ALWAYS output the user - my $thing = Thingy::Hello->new(user => $call); - $thing->broadcast($self); my $ref = Route::User::get($call); $main::me->route_pc16($main::mycall, undef, $main::routeroot, $ref) if $ref; @@ -178,6 +175,11 @@ sub start $user->lastoper($main::systime + ((int rand(10)) * 86400)); } + # ALWAYS output the user + my $thing = Thingy::Hello->new(user => $call, h => $self->{here}); + $thing->broadcast($self); + $self->lasthello($main::systime); + # run a script send the output to the punter my $script = new Script(lc $call) || new Script('user_default'); $script->run($self) if $script;