ReplyLink config keyword can be 'none' now - do not link

This commit is contained in:
Ianos Gnatiuc
2006-12-26 02:05:24 +00:00
parent 4f8ed32c91
commit 5e7ba98146
6 changed files with 22 additions and 9 deletions

View File

@@ -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;
}

View File

@@ -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);