'invite' command and event handler