- /* This handy API function does all the work for us */
- CtdlWriteObject(CONFIGROOM, "text/x-vcard", temp, u, 0, 1);
+ /* This handy API function does all the work for us.
+ * NOTE: normally we would want to set that last argument to 1, to
+ * force the system to delete the user's old vCard. But it doesn't
+ * have to, because the vcard_personal_upload() hook above is going to
+ * notice what we're trying to do, and delete the old vCard.
+ */
+ CtdlWriteObject(CONFIGROOM, /* which room */
+ "text/x-vcard", /* MIME type */
+ temp, /* temp file */
+ u, /* which user */
+ 0, /* not binary */
+ 0); /* don't delete others of this type */