--- loncom/lonnet/perl/lonnet.pm 2002/06/27 14:08:06 1.246 +++ loncom/lonnet/perl/lonnet.pm 2002/06/27 16:03:55 1.247 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.246 2002/06/27 14:08:06 www Exp $ +# $Id: lonnet.pm,v 1.247 2002/06/27 16:03:55 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1740,8 +1740,11 @@ sub allowed { # Restricted by state or randomout? if ($thisallowed=~/X/) { - if ((&condval($statecond)) && - (!$ENV{'acc.randomout'}=~/\&$ENV{'request.symb'}\&/)) { + if ($ENV{'acc.randomout'}) { + my $symb=&symbread(); + if ($ENV{'acc.randomout'}=~/\&$symb\&/) { return ''; } + } + if (&condval($statecond)) { return '2'; } else { return '';