Skip to content

Commit 8b90a25

Browse files
authored
Fix an issue on /JSONOpen and 'f' flag
Added an if check to check if the file is empty to return an error.
1 parent c21e679 commit 8b90a25

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/JSON For mIRC.mrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ alias JSONOpen {
171171
elseif (f isincs %Switches) && (!$isfile($2-)) {
172172
%Error = PARAMETER_INVALID:FILE_DOESNOT_EXIST
173173
}
174+
elseif (f isincs %Switches) && (!$file($2-)) {
175+
%Error = PARAMETER_INVALID:FILE_EMPTY
176+
}
174177

175178
;; All checks passed
176179
else {

0 commit comments

Comments
 (0)