Fix a stack overflow bug with sending IMs to bots. Fix a bug with access lists not working properly.