mIRC Homepage
Posted By: FroggieDaFrog Extend $msgtags - 25/06/15 08:29 AM
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
Posted By: MattiSony Re: Extend $msgtags - 05/09/15 07:09 AM
+1 on this.
Posted By: FroggieDaFrog Re: Extend $msgtags - 05/09/15 11:12 AM
This is already implemented. see /help $msgtags
Posted By: MattiSony Re: Extend $msgtags - 05/09/15 11:52 PM
Only returns $true and $false though(at least from what i'v seen), so wouldn't work on for example $msgtags(display-name)
© mIRC Discussion Forums