From: Michael Hampton Date: Tue, 14 May 2002 15:25:34 +0000 (+0000) Subject: * room_ops.c: clarified aide message when room aide is removed X-Git-Tag: v7.86~6398 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=233172e1c785dee4862ad7a36f174813ec0b07ef;p=citadel.git * room_ops.c: clarified aide message when room aide is removed --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 9229e8108..ca6cc4f7d 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -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 nfo @@ -3657,3 +3660,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/room_ops.c b/citadel/room_ops.c index 01c09d73b..30ae45e1b 100644 --- a/citadel/room_ops.c +++ b/citadel/room_ops.c @@ -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);