ReplyLink config keyword can be 'none' now - do not link
This commit is contained in:
@@ -175,11 +175,13 @@ void CfgRa2usersbbs() {
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
void CfgReplylink() {
|
||||
|
||||
if(strieql(val, "Chain"))
|
||||
void CfgReplylink()
|
||||
{
|
||||
if (strieql(val, "none"))
|
||||
CFG->replylink = REPLYLINK_NONE;
|
||||
if (strieql(val, "chain"))
|
||||
CFG->replylink = REPLYLINK_CHAIN;
|
||||
else if(strieql(val, "Direct"))
|
||||
else if(strieql(val, "direct"))
|
||||
CFG->replylink = REPLYLINK_DIRECT;
|
||||
}
|
||||
|
||||
|
@@ -996,11 +996,17 @@ void MakeMsg(int mode, GMsg* omsg, bool ignore_replyto) {
|
||||
if(*msg->references == NUL)
|
||||
throw_release(msg->references);
|
||||
}
|
||||
if(CurrArea == OrigArea) {
|
||||
if((CFG->replylink == REPLYLINK_DIRECT) or streql(AA->basetype(), "JAM"))
|
||||
reply_msgno = omsg->msgno;
|
||||
else if(CFG->replylink == REPLYLINK_CHAIN)
|
||||
GetLastLink(omsg, reply_msgno);
|
||||
|
||||
if (CurrArea == OrigArea)
|
||||
{
|
||||
if (CFG->replylink != REPLYLINK_NONE)
|
||||
{
|
||||
if ((CFG->replylink == REPLYLINK_DIRECT) or streql(AA->basetype(), "JAM"))
|
||||
reply_msgno = omsg->msgno;
|
||||
else if (CFG->replylink == REPLYLINK_CHAIN)
|
||||
GetLastLink(omsg, reply_msgno);
|
||||
}
|
||||
|
||||
msg->link.to_set(reply_msgno);
|
||||
if(msg->link.to() == omsg->msgno)
|
||||
omsg->link.first_set(msg->msgno);
|
||||
|
Reference in New Issue
Block a user