]> code.citadel.org Git - citadel.git/commitdiff
fixed a bug in roomNet. (didn't reset properly)
authorChilly <chilly@uncensored.citadel.org>
Thu, 29 Jul 1999 18:17:50 +0000 (18:17 +0000)
committerChilly <chilly@uncensored.citadel.org>
Thu, 29 Jul 1999 18:17:50 +0000 (18:17 +0000)
shaggy/citadel.java
shaggy/roomMap.java

index bae92ac62b62e4d4a1372c6773ba45c1fe6b1441..60fcdff4df516484ed8c299ee937ef972671c327 100644 (file)
@@ -65,6 +65,7 @@ public class citadel {
     if( theNet.connect(host) ) {
       System.out.println( "Connected to server." );
 
+      getReply( "IDEN 0|7|0.0|Shaggy|err.ahh.umm.com" );
       citReply rep = theNet.getReply( "INFO" );
       if( rep.listingFollows() )
        serverInfo = new server( rep );
@@ -84,7 +85,7 @@ public class citadel {
 
   public String getSystemMessage( String name ) {
     citReply rep = getReply( "MESG " + name );
-    if( rep.listingFollows() )
+    if( (rep != null) && rep.listingFollows() )
       return rep.getData();
     else
       return "Couldn't find " + name;
@@ -169,6 +170,7 @@ public class citadel {
   }
 
   public void logoff() {
+    rooms.clear();
     cp.logoff(null);
     getReply( "QUIT" );
   }
index d1ea67b3f7d191d0043e3b8abfdebd7ca8fe2ac2..50add9d5f693966916fe4749c7ff7be2f1b42b1d 100644 (file)
@@ -40,6 +40,13 @@ public class roomMap {
     refreshed = false;
   }
 
+  public void clear() {
+    floors = null;
+    nrm = null;
+    srm = null;
+    refreshed = false;
+  }
+
   public void refresh() {
     if( refreshed ) return;
     if( (nrmL == null) || (srmL == null) ) return;