X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXM.pm;h=80b2fbc7bf8398b3ba8bffbe3f8fa281359ef7c4;hb=07ea293f3919d2da76220b5fbc55b734008ed44c;hp=9be309894b8e7402c4cffa5cdf43f1f9eb2ff22f;hpb=b2e4d1c7378cfd98bd8cdf9304c2bd6e5d4b802c;p=spider.git diff --git a/perl/DXM.pm b/perl/DXM.pm index 9be30989..80b2fbc7 100644 --- a/perl/DXM.pm +++ b/perl/DXM.pm @@ -21,13 +21,30 @@ require Exporter; @EXPORT = qw(msg); %msgs = ( + addr => 'Address set to: $_[0]', + anns => 'Announce flag set on $_[0]', + annu => 'Announce flag unset on $_[0]', + conother => 'Sorry $_[0] you are connected on another port', + concluster => 'Sorry $_[0] you are already connected elsewhere on the cluster', + dxs => 'DX Spots flag set on $_[0]', + dxu => 'DX Spots flag unset on $_[0]', + e1 => 'Invalid command', + e2 => 'Error: $_[0]', + e3 => '$_[0]: $_[1] not found', + email => 'E-mail address set to: $_[0]', + heres => 'Here set on $_[0]', + hereu => 'Here unset on $_[0]', + homebbs => 'Home BBS set to: $_[0]', + homenode => 'Home Node set to: $_[0]', l1 => 'Sorry $_[0], you are already logged on on another channel', l2 => 'Hello $_[0], this is $main::mycall located in $main::myqth', + m2 => '$_[0] Information: $_[1]', pr => '$_[0] de $main::mycall $main::cldate $main::ztime >', - e1 => 'Invalid command', - e2 => 'Error: $_[0]', - conother => 'Sorry $_[0] you are connected on another port', - concluster => 'Sorry $_[0] you are already connected elsewhere on the cluster', + prx => '$main::$mycall >', + talks => 'Talk flag set on $_[0]', + talku => 'Talk flag unset on $_[0]', + wwvs => 'WWV flag set on $_[0]', + wwvu => 'WWV flag unset on $_[0]', ); sub msg @@ -35,7 +52,6 @@ sub msg my $self = shift; my $s = $msgs{$self}; return "unknown message '$self'" if !defined $s; - - return eval '"'. $s . '"'; + return eval qq("$s"); }