You should use the enum type instead of integer indices. With those you also don't need the comments and things become more readable. Here's a patch for that (untested):
http://d0t.dbclan.de/dump/mumble_patches/0001-Use-enum-type-and-constants-instead-of-integer-indic.patch