diff --git a/Changes b/Changes index f107ca380..87a538c4a 100644 --- a/Changes +++ b/Changes @@ -539,3 +539,4 @@ - Fixed a MODE_STRIPWORDS bug - Fixed a PART bug - Fixed a STRIPBADWORDS bug +- Fixed a BotMOTD bug diff --git a/src/s_serv.c b/src/s_serv.c index fe72536f5..43b8362c7 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -4559,7 +4559,7 @@ aMotd *read_botmotd(char *filename) (void)dgets(-1, NULL, 0); /* make sure buffer is at empty pos */ newmotd = last = NULL; - while (i = dgets(fd, line, 81) > 0) + while ((i = dgets(fd, line, 81)) > 0) { line[i] = '\0'; if ((tmp = (char *)strchr(line, '\n')))