You should really add a modlist so if you can use !halfop and your on the var %halfop then you are granted with halfop.
Great script though.