]> code.citadel.org Git - citadel.git/commitdiff
Initial work on new implementation of move_message()
authorArt Cancro <ajc@citadel.org>
Thu, 15 Oct 1998 20:36:28 +0000 (20:36 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 15 Oct 1998 20:36:28 +0000 (20:36 +0000)
citadel/ChangeLog
citadel/msgbase.c

index bb52d0e877e2c535595a0c23c7eeb43fe081dfb2..778e6ee409cd63a9047799a0274787f32ea9fc99 100644 (file)
@@ -1,5 +1,6 @@
 Wed Oct 14 22:41:16 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Misc code cleanup
+       * Initial work on new implementation of move_message()
 
 1998-10-13 Nathan Bryant <bryant@cs.usm.maine.edu>
        * configure.in: don't check for -lcrypt unless autologin is enabled
index b29905827c465533603c03aa83d8b340b1c937bb..4a6a1a735d365919e818fe4702868dc7a900b46d 100644 (file)
@@ -1191,6 +1191,14 @@ void cmd_move(char *args)
                }
 
        /* put the message into the target room */
+       lgetroom(&qtemp, targ);
+       get_msglist(&qtemp);
+       CC->num_msgs = CC->num_msgs + 1;
+       CC->msglist = realloc(CC->msglist, (CC->num_msgs * sizeof(long)) );
+       SetMessageInList(CC->num_msgs - 1, num);
+       CC->num_msgs = sort_msglist(CC->msglist, CC->num_msgs);
+       put_msglist(&qtemp);
+       lputroom(&qtemp, targ);
 
-       cprintf("%d FIX FIX FIX implement this!!!!!\n", ERROR);
+       cprintf("%d I think this worked, FIX check to make sure\n", OK);
        }