Fail announce, pray, telegram and turn on aborted telegrams

Change tele() and turn() to return RET_FAIL when getele() fails.
Before, tele() returned RET_OK then, and turn() returned RET_SYN.
This commit is contained in:
Markus Armbruster 2008-08-09 11:52:04 -04:00
parent a532c76428
commit 358de131f7
2 changed files with 5 additions and 6 deletions

View file

@ -76,12 +76,11 @@ turn(void)
time(&tgm.tel_date);
tgm.tel_length = getele("The World", msgbuf);
if (tgm.tel_length < 0) {
pr("Ignored\n");
if (msgfilepath == downfil)
pr("NOT disabling logins.\n");
return RET_SYN;
return RET_FAIL;
} else if (tgm.tel_length == 0) {
if (msgfilepath == motdfil) {
pr("Removing exsting motd.\n");