* entroom (): if we're aide or room-aide, we may view the edit screen, else just...
authorWilfried Göesgens <willi@citadel.org>
Mon, 12 Jul 2010 17:33:43 +0000 (17:33 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 12 Jul 2010 17:33:43 +0000 (17:33 +0000)
webcit/roomops.c

index 511e42701b5e336e795155c6d8179cb365cdca46..e15b0c47e65069a16f79f90760f42bddfad28e34 100644 (file)
@@ -2583,6 +2583,7 @@ void entroom(void)
        int er_floor;
        int er_num_type;
        int er_view;
+       wcsession *WCC = WC;
 
        if (!havebstr("ok_button")) {
                strcpy(WC->ImportantMessage,
@@ -2616,21 +2617,24 @@ void entroom(void)
 
        serv_getln(buf, sizeof buf);
        if (buf[0] != '2') {
-               strcpy(WC->ImportantMessage, &buf[4]);
+               strcpy(WCC->ImportantMessage, &buf[4]);
                display_main_menu();
                return;
        }
-       /** TODO: Room created, now udate the left hand icon bar for this user */
+       /** TODO: Room created, now update the left hand icon bar for this user */
        burn_folder_cache(0);   /* burn the old folder cache */
        
-       /////////////
        gotoroom(er_name);
 
        serv_printf("VIEW %d", er_view);
        serv_getln(buf, sizeof buf);
-       WC->CurRoom.view = er_view;
+       WCC->CurRoom.view = er_view;
+
+       if (WCC->is_aide || WCC->is_room_aide)
+               display_editroom ();
+       else 
+               do_change_view(er_view);                /* Now go there */
 
-       display_editroom ();
 }