Warn if we see a BANNER command when the banner has already been issued.

This commit is contained in:
Dianne Skoll
2025-11-02 11:28:48 -05:00
parent c4e5190ec2
commit 7d3e6b3a72
2 changed files with 5 additions and 0 deletions

View File

@@ -1486,6 +1486,10 @@ static int DoBanner(ParsePtr p)
}
if (!c) return E_EOLN;
if (DidMsgReminder) {
Wprint(tr("Banner has already been issued; this BANNER command will have no effect"));
}
while(c) {
if (DBufPutc(&buf, c) != OK) return E_NO_MEM;
c = ParseChar(p, &err, 0);