fix sending msgs to g1tlh-2 (and not to g1tlh, - and 2)
[spider.git] / perl / DXChannel.pm
index 463d43a2773d8b3d004f446675ae3bd03c250af7..7f144d59046848c458dcb3759571b0b24e12ea64 100644 (file)
@@ -106,6 +106,9 @@ $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',
+                 registered => '9,Registered?,yesno',
                 );
 
 use vars qw($VERSION $BRANCH);
@@ -506,8 +509,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;