]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/instmsg/serv_instmsg.c
dammit, learn to spell
[citadel.git] / citadel / server / modules / instmsg / serv_instmsg.c
index afb9e5b8ece7887f2edd9a167a0053e6c2aa3353..9fcc13fe5075a54c4790faa6ae1a599ae8dcb36b 100644 (file)
@@ -1,6 +1,6 @@
 // This module handles instant messaging between users.
 // 
-// Copyright (c) 1987-2022 by the citadel.org team
+// Copyright (c) 1987-2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or disclosure
 // is subject to the terms of the GNU General Public License, version 3.
@@ -404,17 +404,17 @@ void flush_individual_conversation(struct imlog *im) {
        msg->cm_anon_type = MES_NORMAL;
        msg->cm_format_type = FMT_RFC822;
        if (!IsEmptyStr(im->usernames[0])) {
-               CM_SetField(msg, eAuthor, im->usernames[0], strlen(im->usernames[0]));
+               CM_SetField(msg, eAuthor, im->usernames[0]);
        }
        else {
-               CM_SetField(msg, eAuthor, HKEY("Citadel"));
+               CM_SetField(msg, eAuthor, "Citadel");
        }
        if (!IsEmptyStr(im->usernames[1])) {
-               CM_SetField(msg, eRecipient, im->usernames[1], strlen(im->usernames[1]));
+               CM_SetField(msg, eRecipient, im->usernames[1]);
        }
 
-       CM_SetField(msg, eOriginalRoom, HKEY(PAGELOGROOM));
-       CM_SetAsFieldSB(msg, eMesageText, &FullMsgBuf); /* we own this memory now */
+       CM_SetField(msg, eOriginalRoom, PAGELOGROOM);
+       CM_SetAsFieldSB(msg, eMessageText, &FullMsgBuf);        /* we own this memory now */
 
        // Start with usernums[1] because it's guaranteed to be higher than usernums[0],
        // so if there's only one party, usernums[0] will be zero but usernums[1] won't.