1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
elseif %cmd == setlevel {
if ($3 < $readini(bot.ini, $chan , $address($nick,1)))(!$readini(bot.ini, $chan , $address($2,1))) && ($readini(bot.ini, userlist, $address($nick, 1)) == 5) || ($readini(bot.ini, $chan , $address($nick, 1)) >= 4) {
notice $nick Added $2 to userlist with level: $3
writeini bot.ini $chan $address($2,1) $3
}
elseif (!$readini(bot.ini, $chan , $address($2,1))) {
notice $nick The user already exists. ( $+ $address($nick,1) $+ ) Please use *access <nick> <level>
}
elseif ($3 < $readini(bot.ini, $chan , $address($nick,1))) {
notice $nick Denied. You can not set another user a higher level than you.
}
elseif ($2 !ison $chan) {
notice $nick info: $2 was not found on $chan
}
elseif (!$readini(bot.ini, userlist, $address($nick, 1)) == 5) || (!$readini(bot.ini, $chan , $address($nick), 1) >= 4) {
notice $nick Access denied.
}
}
}
|