home *** CD-ROM | disk | FTP | other *** search
- /* MCF_KB.AMIRX
- // $VER: MCF_KB.AMIRX 4.5 (17.097.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 junk Rnick reason;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 Kick-Ban "|| d2c(2)||Rnick||"." Rnick|| d2c(2) "is not on"|| d2c(2) CurCh;exit;end;if Rnick ~=MyNick then;"say /kickban "CurCh Rnick "At the request of"d2c(2) Unick d2c(2)||reason;exit