Added auto-accept invite feature and config option.

I added a feature to auto-accept invites and a config option to control it!