on 1:TEXT:-adduser *:#: {
if ($chr(35) isin $2) && ($4 isnum) && $5 != $null) {
/set %pw. [ $+ [ $2 ] $+ ] . [ $+ [ $3 ] ] $5
/set %lvl. [ $+ [ $2 ] $+ ] . [ $+ [ $3 ] ] $4
.notice $nick User $3 added to $2 $+ 's access list at level $4
}
else {
.notice $nick Invalid Parameters. Syntax: -adduser <#chan> <nick> <level> <password>
}
}
on 1:TEXT:-login *:?: {
if ($chr(35) isin $2) $$ ($3 != $null) {
if ($3 == %pw. [ $+ [ $2 ] $+ ] . [ $+ [ $nick ] ]) {
.auser %lvl. [ $+ [ $2 ] $+ ] . [ $+ [ $nick ] ] $nick
.notice $nick You have now been logged in.
}
else {
.notice $nick Password Incorrect
}
}
else {
.notice $nick Invalid Parameter. Syntax: -login <#chan> <password>
}
}
Change the 1 to the level that allows a user to add another user. Also, the way this works is if you type -adduser #king-tomato KingTomato 10 mypassword then the following values are set:
%pw.#king-tomato.KingTomato mypass
%lvl.#king-tomato.KingTomato 10
Then, just reference with a login script. To give you an idea, I provided a login script for you.