1. did some work on making talk more intelligent and fixed a>b problem.
[spider.git] / perl / DXProtout.pm
index 8edc0831eb327df41a1f81ea1655953b48142dee..a2b69a67a9f4dfbba796dfaa5c17e7dde67aa184 100644 (file)
@@ -32,7 +32,7 @@ $main::branch += $BRANCH;
 # create a talk string ($from, $to, $via, $text)
 sub pc10
 {
-       my ($from, $to, $via, $text) = @_;
+       my ($from, $to, $via, $text, $origin) = @_;
        my ($user1, $user2);
        if ($via && $via ne $to) {
                $user1 = $via;
@@ -41,10 +41,11 @@ sub pc10
                $user2 = ' ';
                $user1 = $to;
        }
+       $origin ||= $main::mycall;
        $text = unpad($text);
        $text = ' ' unless $text && length $text > 0;
        $text =~ s/\^/%5E/g;
-       return "PC10^$from^$user1^$text^*^$user2^$main::mycall^~";  
+       return "PC10^$from^$user1^$text^*^$user2^$origin^~";  
 }
 
 # create a dx message (call, freq, dxcall, text)