home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / comms_networking / irclient / !IRClient / Scripts / Docs / Prog / CTCP < prev    next >
Encoding:
Text File  |  1996-08-30  |  1.1 KB  |  40 lines

  1. Adding CTCP commands
  2. ====================
  3.  
  4. Requests
  5. --------
  6. CTCP Requests (from other users) will come through :
  7.   PROCOverload_UnknownCTCPRequest(from$,to$,command$,str$)
  8. You should recognise the command (already capitalised) and pass on unless you
  9. do something with it. from$ is provided so that you know which channel it was
  10. broadcast to (if applicable)
  11.  
  12. Enumerate
  13. ---------
  14. You will be asked to give a list of any CTCP commands you provide for the
  15. CLIENTINFO command through :
  16.   FNOverload_ListCTCP(num)
  17. You should use code like :
  18.   DEFFNOverload_ListCTCP(count)
  19.   LOCAL ret$
  20.   IF count=0 THEN
  21.    ret$="<command>"
  22.   ELSE
  23.    ret$=FN@(count-1)
  24.   ENDIF
  25.   =ret$
  26. where <command> may be a space seperated list of commands if more than one is
  27. provided. 
  28.  
  29. Replies
  30. -------
  31. Replies to CTCP commands will come through :
  32.   PROCOverload_UnknownCTCPReply(from$,command$,str$)
  33. You should recognise the command (already capitalised) and pass on unless you
  34. do something with it.
  35.  
  36. Other
  37. -----
  38. There is currently no means to catch user use of /CTCP <command>. If this is
  39. required then you should contact me (gerph@essex.ac.uk) for details and I'll
  40. add the hooks in.