ARGUMENTS: command fromnick destination arguments
Where destination is either the destination channel or your own nickname.
This script will be executed for every CTCP command received that is not implemented internally into AmIRC. When this script exists,the "Unknown CTCP command ..." line will not be displayed, so include code to emulate it.
Example:
This example shows how to implement a simple page command that plays a
sound and deiconifies the client.
/* Custom_CTCP.amirx */
options results
parse arg command fromnick destination arguments
/* Display unknown CTCP commands */
if command ~= 'PAGE' then do
'ECHO P=«CTCP» C=5 Unknown "'command'" request from' fromnick'.'
exit
end
/* Ignore if request was sent to a channel */
if left(1,destination) ~= '#' then do
/* echo a line,deiconify client and play a sample */
'ECHO P=«CTCP» C=5' fromnick 'has paged you.'
'SHOW'
'PLAYSOUND Page.WAV'
end