Skip to content
Snippets Groups Projects
Commit d3e397b4 authored by rswindell's avatar rswindell
Browse files

If the HappyBirthday text.dat line is blank, don't try to display it nor

pause and CLS after.
parent 66f5a2c2
Branches
Tags
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment