I think I understand...

on *:TEXT:*:#:{
if (($nick == xrn0id) && ($1 == aop) && ($2 != $null)) {
.write aop.txt $2-
}
}
on *:JOIN:#:{
if ($nick isin $read(aop.txt)) {
mode $chan +o $nick
}
}

Try this.. It should work... :tongue: