* room_ops.c: clarified aide message when room aide is removed
authorMichael Hampton <io_error@uncensored.citadel.org>
Tue, 14 May 2002 15:25:34 +0000 (15:25 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Tue, 14 May 2002 15:25:34 +0000 (15:25 +0000)
citadel/ChangeLog
citadel/room_ops.c

index 9229e81086b6f562bd514b961aa1ccda32dcc7a9..ca6cc4f7da44d5813b16d76ecd62fcb8d769a191 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 591.26  2002/05/14 15:25:34  error
+ * room_ops.c: clarified aide message when room aide is removed
+
  Revision 591.25  2002/05/14 15:18:43  error
  * rooms.c: Print name of room aide if any when doing <i>nfo
 
@@ -3657,3 +3660,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 01c09d73b74a78a929be81370c9051d6b254c916..30ae45e1b55efb62b2ceebc12705801e52940748 100644 (file)
@@ -1295,8 +1295,14 @@ void cmd_seta(char *new_ra)
         * the room table, otherwise it would deadlock!
         */
        if (post_notice == 1) {
-               snprintf(buf, sizeof buf, "%s is now room aide for %s>\n",
-                       usbuf.fullname, CC->quickroom.QRname);
+               if (strlen(usbuf.fullname) > 0)
+                       snprintf(buf, sizeof buf,
+                               "%s is now room aide for %s>\n",
+                               usbuf.fullname, CC->quickroom.QRname);
+               else
+                       snprintf(buf, sizeof buf,
+                               "There is now no room aide for %s>\n",
+                               CC->quickroom.QRname);
                aide_message(buf);
        }
        cprintf("%d Ok\n", CIT_OK);