Fix chatflags parsing