added nickserv support and a switch for invite support