The /mode command used in the popup definition below is working correctly for me on Undernet. Are you seeing an error message from the server or mIRC?