projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed Aliases so that shutdown works again.
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 01d2135e657e834eac2bf100d5e61f2e443f6036..7f144d59046848c458dcb3759571b0b24e12ea64 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-106,6
+106,9
@@
$count = 0;
disconnecting => '9,Disconnecting,yesno',
ann_talk => '0,Suppress Talk Anns,yesno',
metric => '1,Route metric',
disconnecting => '9,Disconnecting,yesno',
ann_talk => '0,Suppress Talk Anns,yesno',
metric => '1,Route metric',
+ badcount => '1,Bad Word Count',
+ edit => '7,Edit Function',
+ registered => '9,Registered?,yesno',
);
use vars qw($VERSION $BRANCH);
);
use vars qw($VERSION $BRANCH);
@@
-506,8
+509,9
@@
sub rspfcheck
{
my ($self, $flag, $node, $user) = @_;
my $nref = Route::Node::get($node);
{
my ($self, $flag, $node, $user) = @_;
my $nref = Route::Node::get($node);
- if ($nref) {
- if ($nref->dxchan == $self) {
+ my $dxchan = $nref->dxchan if $nref;
+ if ($nref && $dxchan) {
+ if ($dxchan == $self) {
return 1 unless $user;
my @users = $nref->users;
return 1 if @users == 0 || grep $user eq $_, @users;
return 1 unless $user;
my @users = $nref->users;
return 1 if @users == 0 || grep $user eq $_, @users;
@@
-544,7
+548,7
@@
sub broadcast_nodes
# broadcast a message to all clusters ignoring isolation
# [except those mentioned after buffer]
# broadcast a message to all clusters ignoring isolation
# [except those mentioned after buffer]
-sub broadcast_all_
ak1a
+sub broadcast_all_
nodes
{
my $s = shift; # the line to be rebroadcast
my @except = @_; # to all channels EXCEPT these (dxchannel refs)
{
my $s = shift; # the line to be rebroadcast
my @except = @_; # to all channels EXCEPT these (dxchannel refs)