| 1 |
! $eterna: ctcp,v 1.7 2018/06/10 08:17:42 mrg Exp $ |
| 2 |
! |
| 3 |
! Copyright (c) 1990-2018 Michael Sandrof, Troy Rollo, Matthew Green, |
| 4 |
! and other ircII contributors. |
| 5 |
! |
| 6 |
! All rights reserved. See the HELP IRCII COPYRIGHT file for more |
| 7 |
! information. |
| 8 |
! |
| 9 |
Usage: ON [#|+|-|^|&|@]CTCP [-|^]<parameters> [action] |
| 10 |
This event is activated whenever someone sends a client-to-client |
| 11 |
protocol (CTCP) request. Certain CTCP types have predefined |
| 12 |
actions that you can't override with the ^, but you can use the - |
| 13 |
to create your own CTCP protocols. The parameters are: |
| 14 |
$0 nick of person who send CTCP |
| 15 |
$1 who the ctcp was to (either your nick or a channel) |
| 16 |
$2 The CTCP command word |
| 17 |
$3- Any additional arguments |
| 18 |
For example, if you want to set up a new ctcp function called |
| 19 |
CHEESE, you would do: |
| 20 |
ON -CTCP "* * CHEESE" CTCP $0 $2 Say Cheese! |
| 21 |
Using the /CTCP in an ON CTCP automatically sends the proper |
| 22 |
reply format. If someone sends you a: |
| 23 |
CTCP <yournick> CHEESE |
| 24 |
you will see: |
| 25 |
*** CTCP CHEESE from <theirnick>: |
| 26 |
and they will see: |
| 27 |
*** CTCP REPLY CHEESE from <yournick>: Say Cheese! |
| 28 |
|
| 29 |
See Also: |
| 30 |
CTCP |
| 31 |
ON CTCP_REPLY |