Commit 0a785fa5 authored by Rob Swindell's avatar Rob Swindell

Fix birth month check during logon.

New bug, reported by Melkor (STARFRON).
parent fee8cbec
Pipeline #340 passed with stage
in 19 minutes and 21 seconds
......@@ -217,7 +217,7 @@ bool sbbs_t::logon()
bputs(text[LoggingOn]);
if(useron.rows)
rows=useron.rows;
if(tm.tm_mon == getbirthmonth(&cfg, useron.birth) && tm.tm_mday == getbirthday(&cfg, useron.birth)
if(tm.tm_mon + 1 == getbirthmonth(&cfg, useron.birth) && tm.tm_mday == getbirthday(&cfg, useron.birth)
&& !(useron.rest&FLAG('Q'))) {
if(text[HappyBirthday][0]) {
bputs(text[HappyBirthday]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment