projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add IM module for talk, chat and announces
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index e2e3f0d2d2b4aefd4d371259581ee2890353633e..adf7c358ddfec793cf90cedf136da8e799355e0e 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-117,12
+117,13
@@
$count = 0;
ve7cc => '0,VE7CC program special,yesno',
lastmsgpoll => '0,Last Msg Poll,atime',
inscript => '9,In a script,yesno',
ve7cc => '0,VE7CC program special,yesno',
lastmsgpoll => '0,Last Msg Poll,atime',
inscript => '9,In a script,yesno',
+ handle_xml => '9,Handles XML,yesno',
inqueue => '9,Input Queue,parray',
);
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
inqueue => '9,Input Queue,parray',
);
use vars qw($VERSION $BRANCH);
$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /
^\d+\.\d+(?:\.(\d+)\.(\d+))?$
/ || (0,0));
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /
\d+\.\d+\.(\d+)\.(\d+)
/ || (0,0));
$main::build += $VERSION;
$main::branch += $BRANCH;
$main::build += $VERSION;
$main::branch += $BRANCH;
@@
-177,6
+178,14
@@
sub alloc
return $channels{$call} = $self;
}
return $channels{$call} = $self;
}
+# rebless this channel as something else
+sub rebless
+{
+ my $self = shift;
+ my $class = shift;
+ return $channels{$self->{call}} = bless $self, $class;
+}
+
sub rec
{
my ($self, $msg) = @_;
sub rec
{
my ($self, $msg) = @_;
@@
-187,10
+196,10
@@
sub rec
}
}
}
}
-# obtain a channel object by callsign [$obj = DXChannel
->
get($call)]
+# obtain a channel object by callsign [$obj = DXChannel
::
get($call)]
sub get
{
sub get
{
- my
($pkg, $call) = @_
;
+ my
$call = shift
;
return $channels{$call};
}
return $channels{$call};
}
@@
-266,7
+275,7
@@
sub is_bbs
sub is_node
{
my $self = shift;
sub is_node
{
my $self = shift;
- return $self->{'sort'} =~ /[ACRSX]/;
+ return $self->{'sort'} =~ /[ACRSX
W
]/;
}
# is it an ak1a node ?
sub is_ak1a
}
# is it an ak1a node ?
sub is_ak1a