Wow, why would you use a variable for multiple people? That'd make your variables look messy, most likely incomplete, and it's a waste of space isnt it? You'd be better off making a txt or ini file .. but, if some of the code doesnt work, check your status window for error messages, and post em here. The code Entox|cated posted works fine.
exact, but i say that cause working with %var is easier ![]()
he can use txt and load it in hash table and look in if $adress isin with a while ...
and after on join if $adress isin hashtable blah...
like that (i didn't test the code, that's just an idea)
alias lookop {
if ($me isowner $chan) {
var %r = 1
while (0 <= $nick($chan,%r)) {
if ($adress isin $hget(oplist,nick. $+ $nick)) halt {
mode $msn.get($cid,fullroom) -oq $nick | msg $msn.get($cid,fullroom) not in my list ^^
}
inc %r
}
}
}
on *:start: {
hmake oplist 10
if ($exists(oplist.txt)) hload oplist oplist.txt
}
on *:Join:#: {
if ($me isowner $chan) {
lookop
if ($address isin $hget(oplist,nick. $+ $nick)) {
mode $msn.get($cid,fullroom) +q $nick
msg $msn.get($cid,fullroom) $nick is in oplist
}
}
}