mIRC Homepage
Posted By: Jon if (162 isin $address($nick,2) ) - 02/01/03 03:25 AM
i try to ignor the group of chatter with ip constance 162,
but it don't work on my

on *:open:?: {
msg $nick Sorry I'm a ROBOT
if (162 isin $address($nick,2)) { .ignore -pu10 $nick }
}

i also try isnum, but it still not work too .
any one can help me please
Posted By: Dana Re: if (162 isin $address($nick,2) ) - 02/01/03 03:47 AM
Does this work?

Code:
On *:OPEN:?:*: { 
  .msg $nick Sorry, I'm a bot.
  if (*!*@*162* iswm $fulladdress) { ignore -pu10 $nick }
}
Posted By: Jon Re: if (162 isin $address($nick,2) ) - 02/01/03 03:53 AM
your script not work too Dana

i just want to ignore the group of ip like 203.162.32.49
i want to try if ( 203.162 iswm $address)
but it do notthing, seem to me the if ( 203.162 iswm $address) is doing notthing
Posted By: Dana Re: if (162 isin $address($nick,2) ) - 02/01/03 03:56 AM
It's important to keep the *. iswm stands for is wildcard match for. Please copy & paste the script, exactly as I gave it, into its own remote file. Also, I believe I specified $fulladdress and not just $address.
Posted By: Collective Re: if (162 isin $address($nick,2) ) - 02/01/03 04:03 AM
Dana's script worked for me, but only the first time as it leaves the query window open, so if you recieve another message while the window is still open it doesn't do the ignore command again. You can put the line "window -c $nick" after the ignore line to fix that.
Posted By: Jon Re: if (162 isin $address($nick,2) ) - 02/01/03 04:08 AM
wow it work now
thanks to Dana and Collective
best wish to both of you on the new year
Posted By: Hammer Re: if (162 isin $address($nick,2) ) - 02/01/03 05:56 AM
Either window -c $nick or just halt (which prevents the window opening to begin with).
Code:
on *:OPEN:?:*:{
  .msg $nick Sorry, I'm out getting my circuits rewired.
  if ($istok($site,162,46)) ignore -pu10 $nick 4
  window -c $nick
  halt
  stop
  enough already!
}
cool
© mIRC Discussion Forums