[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Thu, 26 Jul 2007 04:05:45 -0000


albertel		Thu Jul 26 00:05:45 2007 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - style police
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.899 loncom/lonnet/perl/lonnet.pm:1.900
--- loncom/lonnet/perl/lonnet.pm:1.899	Wed Jul 25 22:09:24 2007
+++ loncom/lonnet/perl/lonnet.pm	Thu Jul 26 00:05:43 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.899 2007/07/26 02:09:24 raeburn Exp $
+# $Id: lonnet.pm,v 1.900 2007/07/26 04:05:43 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -866,7 +866,7 @@
                             &escape($srch->{'srchby'}).':'.
                             &escape($srch->{'srchterm'}).':'.
                             $srch->{'srchtype'},$homeserver);
-        unless ($response eq 'refused') {
+        if ($response ne 'refused') {
             my @matches = split/&/,$response;
             foreach my $match (@matches) {
                 my ($key,$value) = split(/=/,$match);
@@ -906,7 +906,7 @@
             if ( ($reply =~/^timeout/) || ($reply =~/^error/) ) {
                 &logthis('usersrch error: '.$reply.' for '.$dom.' - searching for : '.$srch->{'srchterm'}.' by '.$srch->{'srchby'}.' ('.$srch->{'srchtype'}.') -  maxtries: '.$maxtries.' tries: '.$tries);
             } else {
-                my @matches = split/&/,$reply;
+                my @matches = split(/&/,$reply);
                 foreach my $match (@matches) {
                     my @items = split(/:/,$match);
                     my ($uname,$udom,%userhash);