Removed the old CtdlSaveMsgPointerInRoom() API. Everything now
[citadel.git] / citadel / serv_newuser.c
index c46f150503573b5e174d6dd5810eb71388adaf5c..da223f59fb6b1d9cf41d89c7c46eecd9bc1841b6 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * $Id$
  *
- * A skeleton module to test the dynamic loader.
+ * Automaticalyl copies the contents of a "New User Greetings" room to the
+ * inbox of any new user upon account creation.
  *
  */
 
@@ -84,9 +85,7 @@ void CopyNewUserGreetings(void) {
        }
 
        if (num_msgs > 0) {
-               for (i = 0; i < num_msgs; ++i) {
-                       CtdlCopyMsgToRoom(msglist[i], mailboxname);
-               }
+               CtdlCopyMsgsToRoom(msglist, num_msgs, mailboxname);
        }
 
        /* Now free the memory we used, and go away. */