1
0
mirror of https://github.com/arsdragonfly/random_messages.git synced 2025-06-23 20:00:20 +02:00

avoid error on closing null file handle

This commit is contained in:
Isidor Zeuner 2017-10-06 02:56:20 +02:00
parent 365ffd23ad
commit 17d2fd9f75

@ -64,6 +64,7 @@ function random_messages.read_messages()
-- blame the admin if not found
output:write(S("Blame the server admin! He/She has probably not edited the random messages yet.\n"))
output:write(S("Tell your dumb admin that this line is in (worldpath)/random_messages\n"))
return
else
-- or write default_input content in worldpath message file
local content = default_input:read("*all")