So, I have a code that blocks spam protection like so.

Code:
if ($($+(%,spamcaps.,$chan),2)) { 
    if ($($+(%,spam1.,$nick),2)) { RETURN }
    if ($($+(%,silent.,$chan),2)) { RETURN }
    if ($($+(%,permit.,$nick),2)) { RETURN }
    IF (($len($1-) < 9) || ($nick isop #)) { RETURN }


There is more, but it is unimportant.

So I want to take something like this

Code:
if ($($+(%,permit.,$nick),2)) { RETURN }


And add $chan into it. So, I assumed I would write it like this

Code:
($($+(%,Permit.,$nick.,$chan),3))


But I can't seem to get it to work. Basically all I need to know, is how to log the word Regular, $nick and $chan of a person, then also how to do the Set on it. So for the permit I have the set command look like

Code:
set -u120 %permit. $+ $nick On


So to do one with all three, what would it look like?


I do things with stuff that makes other things do stuff.