* Forwarded from newsgroup "a Mail" * Originally from: Benny Pedersen () * Original date: Sunday 23-Dec-01 19:49:02
poor vapor not handling mime :( --- Reply to a message --- By: kaedric ->: a Mail :>: [amirc] Re: Request Command > This is something you will need to do with a script or plugin. I > have this capability with AmIRC, and have even released the script > I use to Aminet. Take a look there for CTCP-Master and you should > find what you are looking for. well how do i include this one into ctcp master: how do i say thanks to the sender from the script ? well i like to make it use checkx instaed of unpacking it, if there was virus in it, say so to the sender, if no say thanks :-) how to do this ? /* dccdone.amirx $ver: 0.1 (12/12/01) mailto:[EMAIL PROTECTED] DCCDone.amirx ============= ARGUMENTS: com successcode nick filename where : successcode is 1 for a successful DCC 0 for failed. com is SEND for Outgoing DCC's or RECEIVE for Incoming DCC's. DESCRIPTION: This script is executed when a DCC is completed/aborted/failed. It may be used to perform automated actions on received files. EXAMPLE: This script will extract lha/lzx archives to RAM: and play wav's and snd's. i have added xadmaster to it :-) */ /* DCCDone.amirx */ options results parse arg com successcode nick filename /*Transfer failed/DCC is incoming - abort*/ if successcode=0 | com='SEND' then exit /* Obtain 3 - letter extension */ ext = upper(right(strip(filename,'B',' "'),4)) /* ** #?.wav or #?.snd will be played in AmIRC ** #?.lha will be extracted to RAM: ** #?.lzx will be extracted to RAM: */ Select when ext = '.WAV' | ext = '.SND' then 'PLAYSOUND' filename when ext = '.LHA' then address command 'xadunfile from' filename 'dest=RAM:' when ext = '.lzx' then address command 'xadunfile from' filename 'dest=RAM:' otherwise end -- Benny Pedersen http://xpoint.ldnet.dk/ icq:36248146 � Have a happy Christmas ! 8) ...When it gets to be your turn, they change the rules. ___________________________________________________________________ AmIRC Mailing List - http://www.vapor.com/amirc/ AmIRC FAQ......: http://faq.vapor.com/amirc/ Listserver Help: mailto:[EMAIL PROTECTED]?Subject=HELP Unsubscribe....: mailto:[EMAIL PROTECTED]?Subject=UNSUBSCRIBE
