Project

General

Profile

$hotlink » History » Version 8

Per Amundsen, 02/23/2023 01:35 PM

1 1 Per Amundsen
_Added in 1.9.7_
2
3
*$hotlink(type)*
4
5
Returns information about a match in a [[on HOTLINK]] event.
6
7 5 Per Amundsen
_See also [[$hotline]], [[$hotlinepos]], [[on HOTLINK]], [[/hotlink]]._
8 1 Per Amundsen
9
*Parameters*
10
11 8 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| event | Returns sclick,rclick,dclick,uclick,mclick or mouse depending on which mouse button was pressed or mouse movement. |
14
| line | Returns the full line matched. |
15
| word | Returns the word matched. |
16
| char | Returns the character matched. |
17
| match | Returns the matched text. |
18 1 Per Amundsen
19
*Properties*
20
21 8 Per Amundsen
table(ktable).
22
|*Property*|*Description*|
23
| .pos | Returns the line/word/char/match position in the matched line. |
24
| .type | Returns the url/channel/nick/other type in the matched word. |
25 1 Per Amundsen
26
*Example*
27
28
<pre>
29 6 Mr. BS
on *:HOTLINK:*:*:echo -ag Matched line $hotlink(line) at $hotlink(line).pos, word $hotlink(word) at pos $hotlink(word).pos, char $hotlink(char) at $hotlink(char).pos type $hotlink(match).type
30 1 Per Amundsen
</pre>