mIRC Home    About    Download    Register    News    Help

Print Thread
#253648 25/06/15 08:29 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
With the closed beta, $msgtags returns the full string of tags, leaving the scripter to parse, unescape and grab the value for a specific tag. I purpose extending $msgtags:

If no parameter is specified, the full received msgtag entry should be returned (as it does now)
If a parameter is specified, it should be assumed as a tag name for which that tag's value should be returned

Code:
echo -a $msgtags
;; @color=;display-name=SReject;subscriber=0;turbo=0;user-type=


echo -a $msgtags(display-name)
;; SReject


echo -a $msgtags(subscriber)
;; 0

echo -a $msgtags(turbo)
;; 0


I am SReject
My Stuff
Joined: Oct 2014
Posts: 35
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
+1 on this.


Matti
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
This is already implemented. see /help $msgtags


I am SReject
My Stuff
Joined: Oct 2014
Posts: 35
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
Only returns $true and $false though(at least from what i'v seen), so wouldn't work on for example $msgtags(display-name)


Matti

Link Copied to Clipboard