1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
; === Auto op script by Jsn ===
; please use /setlevel NAME op
; example: /setlevel Jsn op (this will auto op Jsn on the channel you've typed the command)
; NAME will be saved.
; next time NAME joins the channel where you typed the command. He will be auto-opped
; Do not edit, Unless you know wth you are doing? :]
; === End of list ===
alias setlevel {
if ($1) {
if ($1 != $null) {
if ($1 ison $chan) {
writeini op.ini $chan $address($1, 0) op
echo -a 5added $1 to the auto op for channel $chan
}
else {
echo -a 5 $+ $1 wasn't found on $chan
}
}
else {
echo -a 5please fill in a name (eg: Jsn)
}
}
}
on *:join:#:{
if ($readini(op.ini, $chan, $address($nick, 0)) == op) {
mode $chan +o $nick
}
else {
halt
}
} |