home *** CD-ROM | disk | FTP | other *** search
- /* FAQ.AMIRX -- Send a FAQ to the channel
- // $VER: FAQ.AMIRX 4.1 (29.07.96) (MCF Extra Command)
- \\ Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
- // Please mail any bug reports/comments to the above address with a subject
- \\ header of MCF.AMIRX.
- //
- \\ ** What to do with this file?
- // Put this script in REXX:
- \\ Add the following alias
- // /alias FAQ /rx FAQ FAQDIR %p"
- \\ Where FAQDIR is the Directory where FAQs are stored
- */
- ;parse arg FDir Fname User;FName=strip(FName,'L');options results;if FDir=""|FName="" then;do;"echo P="d2c(27)"½½Error╗" d2c(2) "Usage:" d2c(2) " FAQ FAQ-DIR FAQ-Name";exit;end;FQName=FDir||Fname||'.faq';if ~exists(FQName) then;do;"echo P="d2c(27)"½½Error╗ FAQ "|| d2c(2)||FQName|| d2c(2)||" does not Exist.";exit;end;getmynick;mynick=RESULT;getchannel;channel=RESULT;call open("Input",FQName,"Read");xx=readln("Input");do acntr=1 by 1 until eof("Input");"echo P="d2c(27)"½½MCF╗ :"xx;"RAW PRIVMSG "Channel" :"xx;xx=readln("Input");end acntr;call close("Input");exit