on *:TEXT:!request*:#channelname: {
if ($2 == $me) && ($left($3,1) == $chr(35)) { join $3 | set $+(%,req,$3) $nick }
}
[color:red] [/color]
raw 366:*: {
if ($+(%,req,$2)) {
if ($eval($+(%,req,$2),2) !isop $2) {
.msg $eval($+(%,req,$2),2) Request failed. You are not opped on channel $2 try again when you have op.
.part $2
}
elseif ($nick($2,0) < 5) {
.msg $eval($+(%,req,$2),2) Request failed. You do not have the required amount of users in channel.
.part $2
}
else .msg $eval($+(%,req,$2),2) Your channel meets the requirements and I will stay. Remember give me op or else my commands wont work.
unset $+(%,req,$2)
}
}