lot of ops will kickban or akick for using a snippet like this or the inbuilt one on mIRC.
kicks are there for a reason usually :)
only improvement also i can see is a status checker.. ie if me is op | halt... type of thing