--- loncom/lond 2003/03/28 18:26:28 1.122 +++ loncom/lond 2003/03/28 20:40:52 1.123 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.122 2003/03/28 18:26:28 www Exp $ +# $Id: lond,v 1.123 2003/03/28 20:40:52 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -73,7 +73,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.122 $'; #' stupid emacs +my $VERSION='$Revision: 1.123 $'; #' stupid emacs my $remoteVERSION; my $currenthostid; my $currentdomainid; @@ -1843,6 +1843,17 @@ sub getchat { @entries=map { $_.':'.$hash{$_} } sort keys %hash; untie %hash; } + $cutoff=time-60; + if (tie(%hash,'GDBM_File',"$proname/nohist_inchatroom.db", + &GDBM_READER(),0640)) { + $hash{$uname.':'.$undom}=time; + foreach (sort keys %hash) { + if ($hash{$_}>$cutoff) { + $entries[$#entries+1]='active_participant:'.$_; + } + } + untie %hash; + } return @entries; }