sort out the filtering system
[spider.git] / perl / DXChannel.pm
index e60ce6c6be307e382420bb74a9828d9427780312..1a98c7950ad906c1e99541515bb47ac61aaa3a0c 100644 (file)
@@ -52,6 +52,8 @@ $count = 0;
                  beep => '0,Want Beeps,yesno',
                  build => '1,Node Build',
                  call => '0,Callsign',
+                 cmdcount => '5,Cmds in cmdinterval',
+                 cmdintstart => '5,Cmd int start,atime',
                  cluster => '5,Cluster data',
                  conf => '0,In Conference?,yesno',
                  conn => '9,Msg Conn ref',
@@ -66,7 +68,7 @@ $count = 0;
                  enhanced => '5,Enhanced Client,yesno',
                  errors => '9,Errors',
                  func => '5,Function',
-                 group => '0,Access Group,parray',     # used to create a group of users/nodes for some purpose or other.
+                 group => '0,Access Group,parray',
                  gtk => '5,Using GTK,yesno',
                  handle_xml => '9,Handles XML,yesno',
                  here => '0,Here?,yesno',
@@ -811,6 +813,17 @@ sub isregistered
        }
 }
 
+# try to replace the in-core version of the dxchan with the one that has been modified with items like filters
+sub replace
+{
+       my $self = shift;
+       my $call = shift;
+       if (ref $self) {
+               $call ||= $self->{call};
+               $channels{$call} = $self; 
+       } 
+}
+
 #no strict;
 sub AUTOLOAD
 {