From 746eb24c19294a72183fdcf30a697fa07916e2a7 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 13 May 2004 22:01:57 +0000 Subject: [PATCH] Only limit allowed message subject to 25 chars if posting on a QWKnet sub-board that's not networked via Internet or FidoNet. --- src/sbbs3/writemsg.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sbbs3/writemsg.cpp b/src/sbbs3/writemsg.cpp index 7eed049261..f98f5cf840 100644 --- a/src/sbbs3/writemsg.cpp +++ b/src/sbbs3/writemsg.cpp @@ -246,13 +246,12 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum } else { c=LEN_TITLE; + if(mode&WM_QWKNET + || (subnum!=INVALID_SUB + && (cfg.sub[subnum]->misc&(SUB_QNET|SUB_INET|SUB_FIDO))==SUB_QNET)) + c=25; bputs(text[SubjectPrompt]); } - if(!(mode&(WM_EMAIL|WM_NETMAIL)) && !(mode&WM_FILE) - && cfg.sub[subnum]->misc&(SUB_QNET /* |SUB_PNET */ )) - c=25; - if(mode&WM_QWKNET) - c=25; if(!getstr(title,c,mode&WM_FILE ? K_LINE|K_UPPER : K_LINE|K_EDIT|K_AUTODEL) && useron_level && useron.logons) { free(buf); -- GitLab