Fixed autoinvite.lua

isin() deprecated so replaced with table.contains() or == where appropriate