$msgtags » History » Version 5
Per Amundsen, 02/23/2023 05:05 PM
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 | 4 | Per Amundsen | _See also [[$msgstamp]]._ |
10 | |||
11 | --- |
||
12 | |||
13 | 1 | Per Amundsen | *$msgtags(tag|N)* |
14 | |||
15 | Returns the individual tags from the $msgtags identifier. |
||
16 | |||
17 | *Parameters* |
||
18 | |||
19 | 5 | Per Amundsen | table(ktable). |
20 | |*Parameter*|*Description*| |
||
21 | | tag<notextile>|</notextile>N | The tag to retrieve or the Nth tag, if N = 0, number of tags is returned. | |
||
22 | 1 | Per Amundsen | |
23 | *Properties* |
||
24 | |||
25 | 5 | Per Amundsen | table(ktable). |
26 | |*Property*|*Description*| |
||
27 | | .tag | Returns the tag name. | |
||
28 | | .key | Returns the tag value. | |
||
29 | 1 | Per Amundsen | |
30 | *Example* |
||
31 | |||
32 | <pre> |
||
33 | on *:TEXT:*:#:echo -ag Message time tag is $msgtags(time) |
||
34 | |||
35 | on *:TEXT:*:#:echo -ag The 5th tag is $msgtags(5) |
||
36 | </pre> |