Originally Posted By: Teksura

I tried doing something simple like %polloptions $+ $chan in the hopes that I'd be able to use %polloption#channelname as a variable, but that just seems to give me strange results when I try to actually call the variable. It'll generally just look at %polloptions and then just add the channel name to the end of whatever is at %polloptions.

Does anyone know how I can resolve that issue?

You can use $(text,N) identifier.
To understand this properly, you might want to try this to see how $(text,N) works.

//var %poll $+ $me hello world | echo -agt N = 0 is $($+(%,poll,$me),0) | echo -agt N = 1 is $($+(%,poll,$me),1) | echo -agt N = 2 is $($+(%,poll,$me),2)

$(var,0) will return plain text.
$(var,1) will return var itself.
$(var,2) will return value of var.