q => [
'^q', 'bye', 'bye',
],
- r => [
+ r => [
'^r$', 'read', 'read',
+ '^rcmd/(\S+)', 'rcmd $1', 'rcmd',
],
s => [
'^set/nobe', 'unset/beep', 'unset/beep',
--- /dev/null
+#
+# reset/reload the short name command cache
+#
+# you may need to do this if you remove files or the system
+# gets confused about where it should be loading its cmd files
+# from.
+#
+# Copyright (c) 1998 - Dirk Koopman G1TLH
+#
+# $Id$
+#
+my $self = shift;
+return (1, $self->msg('e5')) if $self->priv < 9;
+DXCommandmode::clear_cmd_cache();
+return (1, $self->msg('ok'));
my @out;
push @out, "DX Spider Cluster version $main::version";
-push @out, "written in perl for unix";
push @out, "Copyright (c) 1998 Dirk Koopman G1TLH";
return (1, @out);
%dbglevel = ();
$fp = DXLog::new('debug', 'dat', 'd');
-no strict 'refs';
-
sub dbg
{
my $l = shift;
my $entry;
foreach $entry (@_) {
- delete $dbglevel{entry};
+ delete $dbglevel{$entry};
}
}
} elsif ($ref[1] eq 'talk') {
$s = "$ref[3] -> $ref[2] ($ref[4]) $ref[5]";
} elsif ($ref[1] eq 'ann') {
- $s = "$ref[2] -> $ref[3] $ref[4]";
+ $s = "$ref[3] -> $ref[2] $ref[4]";
} else {
$s = "$ref[2]";
}