X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=937bbfea034b21da0d447bdf95f3483a95ee9c6c;hb=c4a169b536b6189937c6e789010c370ff3f2259e;hp=f451a434d0ebe239ba388d568fe2cf478af71fe7;hpb=6c06ed486e67b3e36e9af4794d2eb84f59f249c4;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index f451a434..937bbfea 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -71,7 +71,7 @@ sub new my @rout = $main::routeroot->add_user($call, Route::here(1)); # ALWAYS output the user - my $thing = Thingy::Hello->new(user => $self->{call}); + my $thing = Thingy::Hello->new(user => $call); $thing->broadcast($self); my $ref = Route::User::get($call); @@ -498,7 +498,7 @@ sub run_cmd sub process { my $t = time; - my @dxchan = DXChannel->get_all(); + my @dxchan = DXChannel::get_all(); my $dxchan; foreach $dxchan (@dxchan) { @@ -589,7 +589,7 @@ sub broadcast my $pkg = shift; # ignored my $s = shift; # the line to be rebroadcast - foreach my $dxchan (DXChannel->get_all()) { + foreach my $dxchan (DXChannel::get_all()) { next unless $dxchan->{sort} eq 'U'; # only interested in user channels next if grep $dxchan == $_, @_; $dxchan->send($s); # send it @@ -599,7 +599,7 @@ sub broadcast # gimme all the users sub get_all { - return grep {$_->{sort} eq 'U'} DXChannel->get_all(); + return grep {$_->{sort} eq 'U'} DXChannel::get_all(); } # run a script for this user @@ -895,7 +895,7 @@ sub broadcast_debug { my $s = shift; # the line to be rebroadcast - foreach my $dxchan (DXChannel->get_all) { + foreach my $dxchan (DXChannel::get_all) { next unless $dxchan->{enhanced} && $dxchan->{senddbg}; $dxchan->send_later('L', $s); }