added radio specific "motd_ax25"
[spider.git] / perl / DXCommandmode.pm
index 691e29b2d6b3fa928933a878ec07221b579957da..a00e0be808a9d19afb85db07f9f2b3da7c1b54a0 100644 (file)
@@ -143,6 +143,13 @@ sub start
        }
        $motd = "${main::motd}_$self->{lang}" unless $motd && -e $motd;
        $motd = $main::motd unless $motd && -e $motd;
+       if ($self->conn->{csort} eq 'ax25') {
+               if ($motd) {
+                       $motd = "${motd}_ax25" if -e "${motd}_ax25";
+               } else {
+                       $motd = "${main::motd}_ax25" if -e "${main::motd}_ax25";
+               }
+       }
        $self->send_file($motd) if -e $motd;
 
        # sort out privilege reduction