X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmsgbase.c;h=ec136d06c412810f06ce5f52edb5205a463ba141;hp=a4ef8b925cfd6fea7b820b25e14b4cde8d242af9;hb=e64a3711948fd273213f363aa7525188bd5cda68;hpb=1c7ddd427e20fd24f19087a7f225a1a7e7cb9fad diff --git a/citadel/msgbase.c b/citadel/msgbase.c index a4ef8b925..ec136d06c 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -2912,12 +2912,12 @@ long CtdlSubmitMsg(struct CtdlMessage *msg, /* message to save */ /* Decide where bounces need to be delivered */ if ((recps != NULL) && (recps->bounce_to == NULL)) { - if (CC->logged_in) - snprintf(bounce_to, sizeof bounce_to, "%s@%s", - CC->user.fullname, CtdlGetConfigStr("c_nodename")); - else - snprintf(bounce_to, sizeof bounce_to, "%s@%s", - msg->cm_fields[eAuthor], msg->cm_fields[eNodeName]); + if (CC->logged_in) { + snprintf(bounce_to, sizeof bounce_to, "%s@%s", CC->user.fullname, CtdlGetConfigStr("c_nodename")); + } + else { + snprintf(bounce_to, sizeof bounce_to, "%s@%s", msg->cm_fields[eAuthor], msg->cm_fields[eNodeName]); + } recps->bounce_to = bounce_to; }