I agree with the above and note that if voice has been taken by an ops, then the script would continually wish to wage war with the devoice if the ops continually chooses to devoice. The result could be far worse than merely being devoiced. There are many snippets in here that provide voice protection along with other protections (e.g. devoice, deop, kick / ban, protects), and as part of a fuller \"package\" are more enticing to a person wishing to obtain some protection. Using rawmode to restore a channel modes can be very useful- the replacement part is merely \".mode $chan $replacex($1-,+,-,-,+)\". Having \"on @*:...\" at the commencement saves getting messages that the code is ineffectual when you don\'t have ops...