mIRC Home    About    Download    Register    News    Help

Print Thread
#259432 21/11/16 09:34 PM
Joined: May 2016
Posts: 11
W
Wikked Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: May 2016
Posts: 11
Hello, I'm using mIRC 7.46 and when I type "/scon -a msg #test that toy is $4" it Will ONLY msg #test with "that toy is". Not sure if this is a bug or not...

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Hello, this is not a bug, see this https://en.wikichip.org/wiki/mirc/msl_injection

The solution is to get /scon to pre-evaluate $4, using a local variable for example.
Code:
var %a $4 | scon -a msg .. % $+ a


Edit: I may have misunderstood what you want to do, if you want the plain text "$4" to appear, use $!!4

Last edited by Wims; 21/11/16 11:27 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: May 2016
Posts: 11
W
Wikked Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: May 2016
Posts: 11
Ok, Awesome thank you!


Link Copied to Clipboard