home *** CD-ROM | disk | FTP | other *** search
- /* MCF_DO.AMIRX
- // $VER: MCF_DO.AMIRX 4.1 (29.07.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.
- */
- ;arg MCFenv MyNick Unick CurCh junk Rnick junk;address value(MCFenv);options results;userhost Rnick;IPAddr=upper(result);atpos=pos("@",IPAddr)+1;IPAddr=substr(IPAddr,atpos);xl=length(IPAddr);userhost MyNick;if right(upper(result),xl)=IPAddr then;do;userhost Unick;if right(upper(result),xl) ~=IPAddr then exit;end;Client=substr(MCFenv,pos(".",MCFenv)+1);CName=CurCh||"."||Client;ChUs=getclip(value(CName));URnick=upper(Rnick)||" ";if 0=pos(URnick,ChUs)|Rnick="" then;do;"RAW PRIVMSG "Unick" :You cannot De-OP "|| d2c(2)||Rnick||"." Rnick|| d2c(2) "is not on"|| d2c(2) CurCh;exit;end;if Rnick ~=MyNick then "say /deop "CurCh Rnick;exit