elseif (%octet == $gettok($hget(userips,%match),0,44))
seems to work, but I dunno where to place the inc %mmm
If I use it like this:
if ($gettok($2,0,46) == 2) {
if ($2 $+ .*.* iswm $gettok($hget(userips,%match),%octet,44)) {
.notice $nick $cl %mmm $+ . %match [ $+ $gettok($hget(userips,%match),0,44) $+ ] $iif((%isRegged != $null),(registered),(unregistered))
}
elseif (%octet == $gettok($hget(userips,%match),0,44)) {
.notice $nick $cl no matches. | halt
}
inc %mmm
}
...then when there are matches, the script shows %mmm to the user and skips a number if that number IP wasn't a match (1,2,3,5,6,8)
----------------------------
EDIT: I fixed it. I just added a new var and only /inc'd it if there was a match.
%resnum = 1
if ($gettok($2,0,46) == 2) {
if ($2 $+ .*.* iswm $gettok($hget(userips,%match),%octet,44)) {
.notice $nick $cl %resnum $+ . %match [ $+ $gettok($hget(userips,%match),0,44) $+ ] $iif((%isRegged != $null),(registered),(unregistered)) | inc %resnum
}
elseif (%octet == $gettok($hget(userips,%match),0,44)) {
.notice $nick $cl no matches. | halt
}
inc %mmm
}