Skip to content

Commit 43df0ba

Browse files
committed
Host_Motd_f: Fixed viewing motd when motdfile is not specified
1 parent 2ba27d4 commit 43df0ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rehlds/engine/host_cmd.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,13 @@ void Host_Motd_f(void)
210210
Con_Printf("Unable to open %s (contains illegal characters)\n", pFileList);
211211
return;
212212
}
213+
214+
if (Q_strlen(pFileList) <= 0)
215+
{
216+
Con_Printf("Unable to open MOTD (motdfile not specified)\n");
217+
return;
218+
}
219+
213220
pFile = FS_Open(pFileList, "rb");
214221
if (!pFile)
215222
{

0 commit comments

Comments
 (0)