mIRC Home    About    Download    Register    News    Help

Print Thread
#270300 24/05/22 12:00 PM
Joined: Dec 2021
Posts: 35
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Dec 2021
Posts: 35
I tried this in the aliases section:

Code
/t /var -gn %var $me | echo >> %var


And the result is that it evaluated the %var variable as my nickname.


. : Machine-Gun script named Bauderr with Trio-ircproxy.py : .
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks for your bug report. The help file section describing /var -n is not very well worded :-]

The purpose of the -n switch is to prevent /set and /var from treating the value as a calculation. In other words, /set -n %var 5 + 2.

The /set -p switch does the same thing but also preserves "text" quotes, including empty "" quotes.

There are several ways to prevent a variable from being evaluated, eg. $evalvar(%var,0) or % $+ var, and so on.


Link Copied to Clipboard