mIRC Homepage
Posted By: Jay_T echo - 21/04/03 02:59 PM
hi i have one question, if i set a IP ban on someone then they will echo to me the nick with that IP is being banned?
for example
[10:52] * Join: test (~shirin@203.125.55.64)
***Clones from *!*@203.125.55.64 :+ test, test2, test3 +
[10:52]* Me sets mode to: +b *!*@203.125.55.64
*** [Banned]: test, test2, test3

anyone has code for that? thanks in advance
Posted By: theRat Re: echo - 21/04/03 04:09 PM
Code:
 
on @*:ban:#: {
  if ( $nick == $me ) {
    var %outvar, %i = 1, %j = $ialchan($banmask,$chan,0)
    while ( %i <= %j ) {
      %outvar = %outvar $gettok($ialchan($banmask,$chan,%i),1,33)
      inc %i
    }
    echo $color(info2) -tr $chan *** Banned: %outvar
  }
}
 


I created this though it wouldn't have been too hard to implement from the Clone code
© mIRC Discussion Forums