mIRC Home    About    Download    Register    News    Help

Print Thread
#253648 25/06/15 08:29 AM
Joined: Apr 2010
Posts: 964
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 964
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

M
MattiSony
MattiSony
M
+1 on this.

#254830 05/09/15 11:12 AM
Joined: Apr 2010
Posts: 964
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 964
This is already implemented. see /help $msgtags

M
MattiSony
MattiSony
M
Only returns $true and $false though(at least from what i'v seen), so wouldn't work on for example $msgtags(display-name)


Link Copied to Clipboard