X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=580783a6a466383f2ae8fac35106c03d2f38e38f;hb=f04ec95fe999a857f0f0c9e08e0f0bfd808ada32;hp=463d43a2773d8b3d004f446675ae3bd03c250af7;hpb=9bdaf6f1c757ea90ed4773a394dc613ae9cca619;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 463d43a2..580783a6 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -106,6 +106,8 @@ $count = 0; disconnecting => '9,Disconnecting,yesno', ann_talk => '0,Suppress Talk Anns,yesno', metric => '1,Route metric', + badcount => '1,Bad Word Count', + edit => '7,Edit Function', ); use vars qw($VERSION $BRANCH); @@ -506,8 +508,9 @@ sub rspfcheck { 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;