[LON-CAPA-cvs] cvs: loncom / lond

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 27 Jun 2006 19:01:23 -0000


albertel		Tue Jun 27 15:01:23 2006 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - $group will always be defined, but in the no group case it's blank
  
  
Index: loncom/lond
diff -u loncom/lond:1.334 loncom/lond:1.335
--- loncom/lond:1.334	Fri Jun 23 20:36:23 2006
+++ loncom/lond	Tue Jun 27 15:01:19 2006
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.334 2006/06/24 00:36:23 albertel Exp $
+# $Id: lond,v 1.335 2006/06/27 19:01:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.334 $'; #' stupid emacs
+my $VERSION='$Revision: 1.335 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -5713,7 +5713,7 @@
     my @entries=();
     my $namespace = 'nohist_chatroom';
     my $namespace_inroom = 'nohist_inchatroom';
-    if (defined($group)) {
+    if ($group ne '') {
         $namespace .= '_'.$group;
         $namespace_inroom .= '_'.$group;
     }
@@ -5745,7 +5745,7 @@
     my $time=time;
     my $namespace = 'nohist_chatroom';
     my $logfile = 'chatroom.log';
-    if (defined($group)) {
+    if ($group ne '') {
         $namespace .= '_'.$group;
         $logfile = 'chatroom_'.$group.'.log';
     }