Skip to content
Snippets Groups Projects
Commit d79887a2 authored by mcmlxxix's avatar mcmlxxix
Browse files

verify userfile object before attempting to access it

parent fa131d2a
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,10 @@ function QueueUser(user_name,user_status,user_queue)
}
function QuitQueue(userfile,thread)
{
userfile.open("r+",true);
userfile.iniRemoveKey(thread,system.qwk_id + "." + user.alias);
userfile.close();
if(userfile)
{
userfile.open("r+",true);
userfile.iniRemoveKey(thread,system.qwk_id + "." + user.alias);
userfile.close();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment