on *:TEXT:*:*:{ if ($left($1,1) == $db.query(settings,Trig.priv)) || ($left($1,1) == $db.query(settings,Trig.both)) { set %com $right($1,-1) set %access $bot.access($address($nick,2)) if (%com == adduser) { whois $2 } if ($3 == $null) { notice $nick Invalid Parameters, Syntax: $1 [Nick] [Level] | Halt } if ($3 !isnum 1-500) { notice $nick Error, Reason: That is not a valid number 1 through 500. | Halt } if ($3 >= %access) { notice $nick Error, Reason: You can not set the access level greater or equal to your own. | Halt } if ($right($address($2,3),10) != .gamesurge) { notice $nick Error, Reason: User's hostmask is not in +x format. halt } if ($readini(Database.ini,Users,$address($2,2)) != $null) { notice $nick Error, Reason: Already added to the userlist. halt } whois $2 bot.adduser $address($2,2) $3 notice $nick Added user $2 to userlist with access $3 $+ . msg #toolz $nick Added user $2 to userlist with access $3 $+ . } unset %com unset %access }