From 6e4fd89c5c4e7f05035b002a43bb57f60539ddc1 Mon Sep 17 00:00:00 2001 From: djk Date: Mon, 7 Dec 1998 01:29:20 +0000 Subject: [PATCH] 5. Added auto prompting for name, qth, location and homenode if any of these aren't known. --- Changes | 6 +++++- perl/DXCommandmode.pm | 6 ++++++ perl/Messages | 15 ++++++++------- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/Changes b/Changes index 982e9dd6..8b155a08 100644 --- a/Changes +++ b/Changes @@ -1,8 +1,12 @@ 07Dec98======================================================================== -1. Added set/name, set/qra, set/location, set/qth, set/homenode +1. Added set/name, set/qra, set/location, set/qth, set/homenode, set/bbs, +set/email 2. changed the Msg socket close to a shutdown (hopefully more reliable), this should stop clients hanging on exit. 3. Added Alias support for help +4. Added lltos and stoll routines to DXBearing +5. Added auto prompting for name, qth, location and homenode if any of these +aren't known. 06Dec98======================================================================== 1. Fixed DXBearing::is_qra so that it correctly detects full QRA locators 2. Added sh/qra for doing locator distances and bearings diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 0f191238..a6e5e2f7 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -82,6 +82,12 @@ sub start # send prompts and things my $info = DXCluster::cluster(); $self->send("Cluster:$info"); + $self->send($self->msg('namee1')) if !$user->name; + $self->send($self->msg('qthe1')) if !$user->qth; + $self->send($self->msg('qll')) if !$user->qra || (!$user->lat && !$user->long); + $self->send($self->msg('hnodee1')) if !$user->qth; + + $self->send($self->msg('pr', $call)); } diff --git a/perl/Messages b/perl/Messages index 6cd9bcd7..1dee13e3 100644 --- a/perl/Messages +++ b/perl/Messages @@ -14,7 +14,7 @@ package DXM; already => '$_[0] already connnected', anns => 'Announce flag set on $_[0]', annu => 'Announce flag unset on $_[0]', - bbse1 => 'Please try again, set/bbs ', + bbse1 => 'Please enter your BBS address,, set/bbs ', bbs => 'Your BBS Address is now \"$_[0]\"', beepoff => 'Beeps are now off', beepon => 'Beeps are now on', @@ -39,7 +39,7 @@ package DXM; e8 => 'Need a callsign and some text', e9 => 'Need at least some text', e10 => '$_[0] not connected locally', - emaile1 => 'Please try again, set/email ', + emaile1 => 'Please enter your email address, set/email ', emaila => 'Your E-Mail Address is now \"$_[0]\"', email => 'E-mail address set to: $_[0]', helpe1 => 'Help system unavailable, tell sysop', @@ -49,15 +49,15 @@ package DXM; hereu => 'Here unset on $_[0]', homebbs => 'Home BBS set to: $_[0]', homenode => 'Home Node set to: $_[0]', - hnodee1 => 'Please try again, set/homenode ', + hnodee1 => 'Please enter your Home Node, set/homenode ', hnode => 'Your Homenode is now \"$_[0]\"', l1 => 'Sorry $_[0], you are already logged on on another channel', l2 => 'Hello $_[0], this is $main::mycall in $main::myqth running DXSpider V$main::version', - loce1 => 'Please try again, set/location ', + loce1 => 'Please enter your location,, set/location ', loce2 => 'Don\'t recognise \"$_[0]\" as a Lat/Long (eg 52 20 N 0 16 E)', loc => 'Your Lat/Long is now \"$_[0]\"', m2 => '$_[0] Information: $_[1]', - namee1 => 'Please try again, set/name ', + namee1 => 'Please enter your name, set/name ', namee2 => 'Can\'t find user $_[0]!', name => 'Your name is now \"$_[0]\"', node => '$_[0] set as AK1A style Node', @@ -71,9 +71,10 @@ package DXM; pr => '$_[0] de $main::mycall $main::cldate $main::ztime >', priv => 'Privilege level changed on $_[0]', prx => '$main::mycall >', - qthe1 => 'Please try again, set/qth ', + qll => 'Please enter your location with set/location or set/qra', + qthe1 => 'Please enter your QTH, set/qth ', qth => 'Your QTH is now \"$_[0]\"', - qrae1 => 'Please try again, set/qra ', + qrae1 => 'Please enter your QRA locator, set/qra ', qrae2 => 'Don\'t recognise \"$_[0]\" as a QRA locator (eg JO02LQ)', qra => 'Your QRA Locator is now \"$_[0]\"', rcmdo => 'RCMD \"$_[0]\" sent to $_[1]', -- 2.34.1