fixed problems with show/channel
[spider.git] / cmd / show / channel.pl
index e1ef761083b620b1e8372c098e7035ceae44e967..147c150af6bd307e71261e4ef547aae2df306f98 100644 (file)
@@ -4,9 +4,10 @@
 # $Id$
 #
 
+use strict;
 my ($self, $line) = @_;
-my @list = /\s+/, $line;                 # generate a list of callsigns
-@list = ($self->call) if (!@list || $self->priv < 9);  # my channel if no callsigns
+my @list = split /\s+/, $line;           # generate a list of callsigns
+@list = ($self->call) if !@list || $self->priv < 9;  # my channel if no callsigns
 
 my $call;
 my @out;