* Offer the [Move] and [Delete] buttons not only for aide/roomaide, but
authorArt Cancro <ajc@citadel.org>
Mon, 26 Sep 2005 21:56:31 +0000 (21:56 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 26 Sep 2005 21:56:31 +0000 (21:56 +0000)
  also whenever we are in a mailbox room owned by the user.

webcit/ChangeLog
webcit/messages.c
webcit/roomops.c
webcit/webcit.h

index 33d92f2f0cc89cd4a10d1a9a50cb50eeccf80e8b..0340953f3215b43778d8e2cde6683ded711cb832 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 625.25  2005/09/26 21:56:31  ajc
+* Offer the [Move] and [Delete] buttons not only for aide/roomaide, but
+  also whenever we are in a mailbox room owned by the user.
+
 Revision 625.24  2005/09/26 18:00:51  ajc
 * Upgraded TinyMCE to version 2.0RC3.  This fixes a conflict with
   the prototype.js library.
@@ -3066,3 +3070,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index c53ae7cdf156cbcbee46fe494844ba08b2385c31..e3b96f83d3f2b3b90b7305c3effa5883b999db8f 100644 (file)
@@ -735,7 +735,8 @@ void read_message(long msgnum, int printable_view) {
                        wprintf("\">[%s]</a> ", _("Forward"));
                }
 
-               if (WC->is_room_aide)  {
+               /* If this is one of my own rooms, or if I'm an Aide or Room Aide, I can move/delete */
+               if ( (WC->is_room_aide) || (WC->is_mailbox) ) {
                        /* Move */
                        wprintf("<a href=\"/confirm_move_msg?msgid=%ld\">[%s]</a> ",
                                msgnum, _("Move"));
index ccc29e5a306b1916b9ed7d349fd54296137952e7..ea106cc1c86ef7ca49e22279f5bd575050d777d4 100644 (file)
@@ -602,7 +602,8 @@ int gotoroom(char *gname)
        WC->room_flags = extract_int(&buf[4], 4);
        /* highest_msg_read = extract_int(&buf[4],6);
           maxmsgnum = extract_int(&buf[4],5);
-          is_mail = (char) extract_int(&buf[4],7); */
+        */
+       WC->is_mailbox = extract_int(&buf[4],7);
        ls = extract_long(&buf[4], 6);
        WC->wc_floor = extract_int(&buf[4], 10);
        WC->wc_view = extract_int(&buf[4], 11);
index 3f2668aa6cafdc5e533b0d195026ea2896c92061..7aebacb2537e90ee96e88ebf2d93fbf6ee84f5f9 100644 (file)
@@ -304,6 +304,7 @@ struct wcsession {
        size_t burst_len;
        char *burst;
        int gzip_ok;                    /* Nonzero if Accept-encoding: gzip */
+       int is_mailbox;                 /* the current room is a private mailbox */
 };
 
 #define num_parms(source)              num_tokens(source, '|')