<html>
<head>
<title>Programming New Commands</title>
- </head>
+
<meta name="Keywords" content="DX Cluster, DXSpider, Spider, Packet Cluster, DXCluster, Pavillion Software, AK1A, AX25, AX.25, WWV, Packet Radio, Amateur Radio, Propagation, DX, DXing, G1TLH, GB7TLH, Dirk Koopman, Mailing list, Linux, RedHat, PERL">
<meta name="Description" content="Software and systems for realtime digital communications between amateur radio stations for the provision of information on propagation conditions and stations operating">
<meta name="Author" content="Dirk Koopman G1TLH">
+ <link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">
+
</head>
<body TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#FFFFFF">
and are subroutines derived from the DXChannel class. They effectively
the following declaration :-
<p><pre>
- sub Emb_<cmdname>($self, $args)
+ sub Emb_<cmdname>($self, $args)
{
...
your code here
my @out;
# check privileges
- return (1, $self->msg('e5')) if $self->priv < 5;
+ return (1, $self->msg('e5')) if $self->priv < 5;
....
....
my $user;
my $ref;
-return (1, $self->msg('e5')) if $self->priv < 9;
+return (1, $self->msg('e5')) if $self->priv < 9;
foreach $call (@args) {
$call = uc $call;
- if ($ref = DXUser->get_current($call)) {
+ if ($ref = DXUser::get_current($call)) {
$ref->passwd($pass);
$ref->put();
push @out, $self->msg("password", $call);
<p><li>It is important that you remember when you have tie
hashes using MLDBM et al. If you do a
- <tt>DXUser->get($call)</tt> you will get a different (older)
+ <tt>DXUser::get($call)</tt> you will get a different (older)
thing than the one in <tt>$self->user</tt>. This is almost
certainly NOT what you want if want to modify a user that is
currently connected. Either use <tt>$self->user</tt> or, if
- you want another user, use <tt>DXUser->get_current($call)</tt>
+ you want another user, use <tt>DXUser::get_current($call)</tt>
<p><li>If you want to debug something, start the cluster.pl up thus:-
<pre>
mean that this is a prompt and will not have a \r or \n appended to
it in the client for telnet sessions (only).
- <p><li>help is kept in <tt>/spider/cmd/Command_<lang>.hlp</tt> files.
+ <p><li>help is kept in <tt>/spider/cmd/Command_<lang>.hlp</tt> files.
The format of the help files should be self explanatory, but they are
explained further in the files themselves.