Fix bug introduced in r243 where /LASTLOG without -FILE no longer worked.

Reported by jeezy.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@479 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-11-24 13:15:22 +00:00
parent b300961524
commit f13de53ad4

View File

@@ -434,7 +434,7 @@ BUILT_IN_COMMAND(lastlog)
}
}
if (!(fp = fopen(filename, file_open_type)))
if (filename && !(fp = fopen(filename, file_open_type)))
{
bitchsay("cannot open file %s", filename);
return;