$msgtags » History » Version 1
Per Amundsen, 08/01/2015 03:58 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.7_ |
|---|---|---|---|
| 2 | |||
| 3 | *$msgtags* |
||
| 4 | |||
| 5 | Returns a list of message tags for an incoming server message. |
||
| 6 | |||
| 7 | This only applies to [[IRCv3]] messages. |
||
| 8 | |||
| 9 | *$msgtags(tag|N)* |
||
| 10 | |||
| 11 | Returns the individual tags from the $msgtags identifier. |
||
| 12 | |||
| 13 | *Parameters* |
||
| 14 | |||
| 15 | tag|N - The tag to retrieve of the N'th tag, if N = 0, number of tags is returned. |
||
| 16 | |||
| 17 | *Properties* |
||
| 18 | |||
| 19 | .tag - Returns the tag name. |
||
| 20 | .key - Returns the tag value. |
||
| 21 | |||
| 22 | *Example* |
||
| 23 | |||
| 24 | <pre> |
||
| 25 | on *:TEXT:*:#:echo -ag Message time tag is $msgtags(time) |
||
| 26 | |||
| 27 | on *:TEXT:*:#:echo -ag The 5th tag is $msgtags(5) |
||
| 28 | </pre> |