Fix warning about passing wrong structs

in src/chmode.c chm_* functions were passing Client structures to
is_halfop is_chanop is_admin is_owner etc instead of a membership struct