On CTCP » History » Version 6
Per Amundsen, 07/11/2019 07:09 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *<notextile>CTCP <level>:<matchtext>:<*|#|?>:<commands></notextile>* |
||
4 | |||
5 | Triggers whenever you receive a CTCP request. |
||
6 | |||
7 | 6 | Per Amundsen | _See also [[/ctcp]], [[/ctcpreply]], [[on CTCPREPLY]], [[$filename]]._ |
8 | 1 | Per Amundsen | |
9 | 5 | Per Amundsen | _Also trigger when receiving a DCC CHAT/SEND request, but the text is not haltable in this case._ |
10 | |||
11 | 1 | Per Amundsen | *Parameters* |
12 | |||
13 | 4 | Per Amundsen | <level> - The [[User Access Level]] for the event to trigger. |
14 | <matchtext> - The [[Matchtext]] to listen to. |
||
15 | <*|#|?> - The [[Matchtarget]] to listen to. |
||
16 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
17 | 1 | Per Amundsen | |
18 | *Example* |
||
19 | |||
20 | <pre> |
||
21 | ; Disable CTCP version reply. |
||
22 | CTCP *:VERSION:*:halt |
||
23 | |||
24 | ; Reply with a custom version. |
||
25 | CTCP *:VERSION:*:ctcpreply $nick IRC Version 42 | halt |
||
26 | </pre> |