From d3e397b4fc6e5fcc190bc9da559988aad1dd438d Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 16 Apr 2018 01:32:23 +0000
Subject: [PATCH] If the HappyBirthday text.dat line is blank, don't try to
 display it nor pause and CLS after.

---
 src/sbbs3/logon.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/logon.cpp b/src/sbbs3/logon.cpp
index 6071015997..b418168b46 100644
--- a/src/sbbs3/logon.cpp
+++ b/src/sbbs3/logon.cpp
@@ -212,9 +212,11 @@ bool sbbs_t::logon()
 		rows=useron.rows;
 	unixtodstr(&cfg,(time32_t)logontime,str);
 	if(!strncmp(str,useron.birth,5) && !(useron.rest&FLAG('Q'))) {
-		bputs(text[HappyBirthday]);
-		pause();
-		CLS;
+		if(text[HappyBirthday][0]) {
+			bputs(text[HappyBirthday]);
+			pause();
+			CLS;
+		}
 		user_event(EVENT_BIRTHDAY); 
 	}
 	useron.ltoday++;
-- 
GitLab