X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=46e4e03a12dfcd1ba1ff84a31593352aca08303f;hb=c6a62ff483f8887b4157e111a405fef971ade8d9;hp=85df95b16cfc3602e377c284643951ee3cc45c20;hpb=acf26488adcdf8852419818897405d10f895e16a;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 85df95b1..46e4e03a 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -569,7 +569,7 @@ sub process my $dxchan; foreach $dxchan (@dxchan) { - next unless $dxchan->{sort} eq 'U'; + next unless $dxchan->is_user; # send a outstanding message prompt if required if ($t >= $dxchan->lastmsgpoll + $msgpolltime) { @@ -663,7 +663,7 @@ sub broadcast my $s = shift; # the line to be rebroadcast foreach my $dxchan (DXChannel::get_all()) { - next unless $dxchan->{sort} eq 'U'; # only interested in user channels + next unless $dxchan->is_user; # only interested in user channels next if grep $dxchan == $_, @_; $dxchan->send($s); # send it } @@ -672,7 +672,7 @@ sub broadcast # gimme all the users sub get_all { - return grep {$_->{sort} eq 'U'} DXChannel::get_all(); + return grep {$_->is_user} DXChannel::get_all(); } # run a script for this user