a few changes after profiling
[spider.git] / perl / DXCommandmode.pm
index 1e3efc47fd97bc6ecae12f506bcca9b3ede6f857..6f01eb574f54dd618a083a30e0f1a6306b5218de 100644 (file)
@@ -564,7 +564,7 @@ sub process
        my $dxchan;
        
        foreach $dxchan (@dxchan) {
-               next if $dxchan->sort ne 'U';  
+               next if $dxchan->{sort} ne 'U';  
        
                # send a outstanding message prompt if required
                if ($t >= $dxchan->lastmsgpoll + $msgpolltime) {
@@ -1166,6 +1166,9 @@ sub import_cmd
        my @names = readdir(DIR);
        closedir(DIR);
        my $name;
+
+       return unless @names;
+       
        foreach $name (@names) {
                next if $name =~ /^\./;