"/return %var" doesn't work if:
1) %var is someone's nick
2) there's a query window opened (but not active) to that nick
I think "/return %var" tries to do something with that query window and doesn't return the value.
(I'm using "/return %var" in a custom identifier)
I couldn't reproduce the bug and I tend to think there isn't one. Your problem is most possibly script-related. Show us a specific script that 'reproduces the bug' so we can see whether it's a bug and, if it isn't, try to pinpoint the error.
Define "doesn't work" It returns random letters? It returns nothing? mIRC freezes? mIRC crashes? You get error messages? etc. Also what version of Windows and of mIRC? But in any case I can't reproduce it:
alias test { query codemastr | var %var = codemastr | return %var }
//echo -s $test
it opens the query window to codemastr, then prints codemastr to the status window
WinME mIRC 6.03
Yeah, seems that was totally my fault. I didn't add $active parametr somewhere, and %var was treated like a window name...
Sorry for bothering
You didnt do it right..
alias test { query codemastr | var %var = codemastr | return %var }
is wrong. It should be:
alias test { query codemastr | set %var codemastr | return %var }
you wrote "var %var = codemastr"
it should be: set %var codemastr
So when I do the right one, I get: * /echo: insufficient parameters
So, problem reprodused