Your script would trigger the 'deprotect' part when somebody does something like /mode #chan [color:red]-o+a nick nick[/color], when in fact this command should trigger the 'protect' part.

Also, $1 is not the person who sets the mode, that's $nick. $1- is modes and their parameters, so in the example above
$1 = -o+a
$2 = nick
$3 = nick
$1- = -o+a nick nick
That means you should change every instance of $3 to $1.

Last edited by qwerty; 27/05/05 03:32 PM.