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:
@@ -539,3 +539,4 @@
|
||||
- Fixed a MODE_STRIPWORDS bug
|
||||
- Fixed a PART bug
|
||||
- Fixed a STRIPBADWORDS bug
|
||||
- Fixed a BotMOTD bug
|
||||
|
||||
+1
-1
@@ -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')))
|
||||
|
||||
Reference in New Issue
Block a user