mIRC Home    About    Download    Register    News    Help

Print Thread
#156207 13/08/06 02:41 PM
Joined: Jan 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2006
Posts: 10
How would a global ban script look like


like i type something and it bans that person in all the rooms i have power in

#156208 13/08/06 02:58 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Try www.mircscripts.org or www.mirc.net and search for "blacklist" or "sh*tlist". That will do as you request.


-KingTomato
#156209 13/08/06 03:39 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I haven't come across one that has this feature included.

Code:
alias gban {
  var %dmask = 2
  [color:green]; default mask type[/color]
  if (!$1) {
    echo $colour(info) -a * /gban: Please supply a nickname.
    return
  }
  if ($2 !isnum 1-20) tokenize 32 $1 %dmask
  [color:green]; ensure there's a valid mask provided[/color]
  var %i = 1
  while ($comchan($me,%i)) {
    [color:green]; using $comchan() instead $chan() so that it ignores open[/color]
    [color:green]; channel windows you're not actually in (keep channels open option)[/color]
    if ($me isop $v1) && ($1 ison $v2) ban $v2 $v1 $2
    inc %i
  }
}

[color:green]; kickban alias[/color]
alias gkban {
  var %dmask = 2
  [color:green]; default mask type[/color]
  if (!$1) {
    echo $colour(info) -a * /gban: Please supply a nickname.
    return
  }
  if ($2 !isnum 1-20) tokenize 32 $1 %dmask $2-
  [color:green]; ensure there's a valid mask provided[/color]
  var %i = 1
  while ($comchan($me,%i)) {
    [color:green]; using $comchan() instead $chan() so that it ignores open[/color]
    [color:green]; channel windows you're not actually in (keep channels open option)[/color]
    if ($me isop $v1) && ($1 ison $v2) ban -k $v2 $v1 $2-
    inc %i
  }
}


/gban <nick> [mask]
/gkban <nick> [mask] [reason]


Link Copied to Clipboard