// 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.
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.