1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 06:03:12 +02:00

fixed a botmotd bug

This commit is contained in:
codemastr
2000-08-08 22:29:16 +00:00
parent 97e41a7e42
commit c90d13174d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -539,3 +539,4 @@
- Fixed a MODE_STRIPWORDS bug
- Fixed a PART bug
- Fixed a STRIPBADWORDS bug
- Fixed a BotMOTD bug
+1 -1
View File
@@ -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')))