Use: !addoper and its write an .txt file with that name you type.
When this name join its show msg Oper Joined! and its give him +ao
hf ^^
on *:TEXT:*:#: {
if ($1 == !addoper) {
if ($nick !isop $chan) || ($2 == $null) { halt }
write oper.txt $2
notice $nick Successfully added $2 to the list.
}
}
on *:JOIN:#: {
if ($nick == $read(oper.txt, w, * $+ $nick $+ *)) { msg $chan Oper joined! | mode $chan +o $nick | halt }
}
}
No need for the varibale acually.
on :TEXT::#: {
if ($1 == !addoper) {
if ($nick !isop $chan) || ($2 == $null) { halt }
write oper.txt $2
notice $nick Successfully added $2 to the list.
}
}
on :JOIN:#: {
if ($nick isin $read(oper.txt, w, $+ %1oper.join $+ *)) { msg $chan Oper joined! | mode $chan +o $nick | halt }
}
}