&miscCheck2(2); # mandatory
&shmFlush(1); # mandatory
&slashdotLoop(2);
+ &plugLoop(2);
&freshmeatLoop(2);
&kernelLoop(2);
&wingateWriteFile(2);
} );
}
+sub plugLoop {
+
+ if (@_) {
+ &ScheduleThis(60, "plugLoop");
+ return if ($_[0] eq "2");
+ }
+
+ my @chans = &ChanConfList("plugAnnounce");
+ return unless (scalar @chans);
+
+ &Forker("plug", sub {
+ my $line = &Plug::plugAnnounce();
+ return unless (defined $line);
+
+ foreach (@chans) {
+ next unless (&::validChan($_));
+
+ &::status("sending plug update to $_.");
+ ¬ice($_, "Plug: $line");
+ }
+ } );
+}
+
sub freshmeatLoop {
if (@_) {
&ScheduleThis(60, "freshmeatLoop");