Yeah I had trouble responding a couple days ago, but figured I'd make the fix publicly available. The issue was that $nick wasn't referencing what you expected. This was my solution:
Edited about an hour after original post with new link: https://pastebin.com/bAw6cA0j - This should go through all returned results.
Yeah but I can't reproduce the output, so here's what you should do.. Add this to your remotes:
raw *:*:{ echo -s $numeric $+ : $1- }
Then check all numbers that popup in the status window when someone triggers lastid. If the user exists, you will see 314, 369, and maybe something else? So that other number you see (not 406, this is user not found), take it and replace the number 9999 below with that number:
raw 9999:*: {
if ($hasActiveSearch(314,$2)) haltdef
}
And maybe that does the trick? Otherwise I don't really know what you mean... I don't really see a reason why any form of auto-scrolling / output would be displayed.
Don't forget to remove the first piece of code from your script afterwards.
Missed a few bits of code there.. but i fixed that bit.. however..
still errors.. the bot outputs everything to status still... but it does open the pm now.. but,... it only shows 1 result on the whowas! dont forget when you post a code to use square brackets with code and /code inside them.. [ code ] code here [ /code ] obviosly without the spaces in the square brackets :)