Hello all,

I've searched and read everything I can find, and can't figure out to to read a single text string from the last line from a query window reply.

Use Case: challenge-response. I send a 4 letter random text string, and they reply with it in the same query window. I match them, and give the user voice. This keeps simple bots from getting voice in the channel.

I've looked at on Open, and using on Text, but this window is already open.

I'm reading about /filter -w[windowname] -k[aliasname] (using a window as the "infile" and passing it to an alias). I'm confused about the -r switch (range of lines to filter)., though I think that's what I need. Should that be -r1 or r2, or do I need to specify my own sort? I'm actually confused by all of it - lol. I feel like I'm making this way too hard.

Any ideas on this? Or a simple example? I just need that most recent line in a variable, and I'm golden.

Thanks in advance!