Hi i made a script so that you must be in the channel #plounge and also your name must have [p] in it to get ops. you must have both not one or the other to get ops.

example: name [p]spirit is on #plounge = get ops
name: random on #plounge = no ops

but i also want to make it so they can have [p] anywhere in their nickname like s[p]irit for example.

and 1 more thing some of them just use [p] to get ops so i want to make it if they do that then change their nickname to something else it deops them.

here is my script.

on *:JOIN:#:{
if ((*[p]* iswm $nick) && ($nick ison #plounge) && ($me isop $chan)) { mode $chan +o $nick }

any help appreciated. thanks