protocol: mods changed at the same time as ok

mods protocol data changed as well when the ok data changed. added generator to split the permission bitflag out. Also added elif since mlist can't be both gt and lt group.mods.