ASzc/keratin-irc — pull request #9 by mbarkley (2013-11-01 14:39:40+00:00)
Title: Fix for NPEs

This request has fixes for NPEs which are preventing the auto op feature from working properly in the [VileBot project](https://github.com/oldterns/VileBot). Included in the first commit is a check for legal state that will hopefully prevent any similar errors in the future.