Project

General

Profile

Ctcpreply » History » Version 5

Per Amundsen, 10/05/2015 01:02 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 4 Per Amundsen
*/ctcpreply <nick> <ctcp> [message]*
4 1 Per Amundsen
5
Sends a reply to a ctcp query.
6
7
*Parameters*
8
9 4 Per Amundsen
<nick> - The nick to reply.
10 1 Per Amundsen
<ctcp> - The ctcp result to reply.
11
[message] - The ctcp result message to reply.
12
13
*Example*
14
15
<pre>
16 5 Per Amundsen
; Listen to a TIME CTCP request.
17 1 Per Amundsen
ctcp *:TIME:*:{
18
 
19 5 Per Amundsen
  ; Send two ctcp replies.
20 1 Per Amundsen
  /ctcpreply $nick TIME Current time: $time(hh:nn:ss TT (ZZZ))
21
  /ctcpreply $nick TIME Current Data: $time(dddd $+ $chr(44) mmmm dd $+ $chr(44) 2009)
22
 
23 5 Per Amundsen
  ; Stop AdiIRC's standard ctcp reply.
24 1 Per Amundsen
  halt
25
}
26 2 Per Amundsen
</pre>