move the prompt
[spider.git] / perl / DXCommandmode.pm
index 96c135376495fbbb0747f64b7ee996ae4657bfdb..4142f043f3aa024c98e07f4f5aff57e993c2ddd0 100644 (file)
@@ -128,7 +128,6 @@ sub start
        $self->send($self->msg('qll')) if !$user->qra || (!$user->lat && !$user->long);
        $self->send($self->msg('hnodee1')) if !$user->qth;
        $self->send($self->msg('m9')) if DXMsg::for_me($call);
-       $self->prompt;
 
        # decide on echo
        if (!$user->wantecho) {
@@ -147,8 +146,10 @@ sub start
        }
 
        # run a script send the output to the punter
-       my $script = new Script(lc $call);
+       my $script = new Script(lc $call) || new Script('user_default');
        $script->run($self) if $script;
+
+       $self->prompt;
 }
 
 #