home *** CD-ROM | disk | FTP | other *** search
- /* MCF_OK.AMIRX
- // $VER: MCF_OK.AMIRX 4.2 (02.08.96)
- \\ 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: It will be used by MCF.AMIRX.
- */
- ;parse arg MCFenv MyNick Unick CurCh jdata Rnick reason;OPTIONS RESULTS;if ":%OK" ~=upper(jdata) then signal Master;address value(MCFenv);Unick=upper(Unick);Rnick=upper(Rnick);Client=substr(MCFenv,pos(".",MCFenv)+1);CName=CurCh||"."||Client;ChUs=getclip(value(CName));signal DoIt;Master:;if MCFenv="" then exit;reason=MyNick Unick CurCh jdata Rnick||reason;Rnick=upper(MCFenv);getmynick;MyNick=upper(result);getchannel;CurCh=result;getusers;ChUs=upper(result);Unick=MyNick;signal DoIt;DoIt:;if 0=pos(Rnick,ChUs) then;IPAddr=Rnick;else;do;userhost Rnick;IPAddr=upper(result);atpos=pos("@",IPAddr)+1;IPAddr=substr(IPAddr,atpos);end;xl=length(IPAddr);userhost MyNick;if right(upper(result),xl)=IPAddr then;do;userhost Unick;if right(upper(result),xl) ~=IPAddr then exit;end;if reason="" then;reason="How do ya like them OPs???";"say /op " CurCh RNick;"say /kick " CurCh RNick reason;exit