1
2
3
4
5
6
7
8
9
10
|
on *:text:$adduser*:#:{
if ($istok(op voice master banned owner,$3,32)) {
var %y = $readini(userlist.ini,$chan,$address($nick,0)), %x = $readini(userlist.ini,$chan,$address($2,0))
if ($istok(master owner,%y,32)) {
.writeini userlist.ini $chan $address($2,0) $3
.notice $nick $iif(%x,You updated $2 $+ 's level to: $3,You added $2 to database as $3)
.msg $2 You $+ $iif(%x,r userlevel has been updated to $3,$chr(32) $+ have been added to database as $3)
}
else { notice $nick Error: userlevel must be one of these: op voice master banned owner }
} |