I'm trying to find a way to check if the person's vhost is already located in the variable.
Code:
if ($numtok($($+(%,$2),2),32) == 2) {
set $($+(%,$2),1) $addtok($($+(%,$2),2),$address($nick,2),32)
}
This works, but here is the what I'm trying to do.
Code:
if ($numtok($($+(%,$2),2),32) == 2) {
if ($gettok($($+(%,$2),2),32) isin $address($nick,2)) {
msg $chan You already voted for this person, $nick
}
else {
set $($+(%,$2),1) $addtok($($+(%,$2),2),$address($nick,2),32)
}
}
and this doesn't work
I get this error: * Too few parameters: $gettok (line 12, voices.mrc) wich is this line: if ($gettok($($+(%,$2),2),32) isin $address($nick,2)) {