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
33
34
35
|
; === Auto op script by Jsn&Przemo ===
; 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 owner {
writeini op.ini setup $address($1, 0) owner
}
on *:join:#:{
if ($readini(op.ini, $chan, $address($nick, 0)) == op) {
mode $chan +o $nick
}
if ($readini(op.ini, $chan, $address($nick, 0)) == voice) {
mode $chan +v $nick
}
if ($readini(op.ini, $chan, $address($nick, 0)) == banned) {
mode $chan +b $address($nick, 0)
kick $chan $nick $address($nick, 0) was found in my banlist.
}
else {
halt
}
}
on *:text:!setlevel *:#:{
if ($readini(op.ini, $chan, $address($nick, 0)) == owner) || ($readini(op.ini, setup, $address($nick, 0)) == owner) {
if ($3 == op) || ($3 == voice) || ($3 == banned) {
writeini op.ini $chan $address($2, 0) $3
echo -a added $2 with level: $+(',$3,')
}
}
}
|