1. Sysops can now have full privileges if there is a ExtMsg listener on
[spider.git] / perl / ExtMsg.pm
index 3f8159aa54699357bff0ac074a4a9235928a2698..74c544c4453f1c68e370a92e9e8e9d82e06010f9 100644 (file)
@@ -90,7 +90,9 @@ sub dequeue
                        } elsif ($conn->{state} eq 'WL' ) {
                                $msg = uc $msg;
                                if (is_callsign($msg)) {
-                                       $conn->to_connected($msg, 'A', $conn->{csort});
+                                       my $sort = $conn->{csort};
+                                       $sort = 'local' if $conn->{peerhost} eq "127.0.0.1";
+                                       $conn->to_connected($msg, 'A', $sort);
                                } else {
                                        $conn->send_now("Sorry $msg is an invalid callsign");
                                        $conn->disconnect;