Update autojoin.lua

functions changed