little tidying for hipchat

use a map instead of `cond` to lookup msg color, small tidying