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
|
on $*:text:/^\*/:#:{
var %cmd = $mid($1,2)
If %cmd == op {
if (!$readini(stamper.ini, setup, $address($nick, 0)) >= 3) {
notice $nick you are not authorized to use this command.
}
elseif ($2 != $null) && ($2 ison $chan) && ($2 !isop $chan) {
mode $chan +o $2
}
elseif ($2 != $null) && ($2 isop $chan) {
notice $nick $2 is already opped.
elseif ($2 == $null) && ($nick !isop $chan) {
mode $chan +o $nick
elseif ($nick isop $chan) {
notice $nick you are already opped.
}
}
else {
notice $nick $2 was not found.
}
}
}
elseif %cmd == add {
.writeini stamper.ini setup $address($2, 0) $3
notice $nick added $2 with level $3 (database)
}
}
|