|
if (162 isin $address($nick,2) )
#4467
02/01/03 03:25 AM
|
Joined: Dec 2002
Posts: 27
Jon
OP
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 27 |
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
|
|
|
Re: if (162 isin $address($nick,2) )
#4468
02/01/03 03:47 AM
|
Joined: Dec 2002
Posts: 144
Dana
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 144 |
Does this work?
On *:OPEN:?:*: {
.msg $nick Sorry, I'm a bot.
if (*!*@*162* iswm $fulladdress) { ignore -pu10 $nick }
}
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
|
|
|
Re: if (162 isin $address($nick,2) )
#4469
02/01/03 03:53 AM
|
Joined: Dec 2002
Posts: 27
Jon
OP
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 27 |
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
|
|
|
Re: if (162 isin $address($nick,2) )
#4470
02/01/03 03:56 AM
|
Joined: Dec 2002
Posts: 144
Dana
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 144 |
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.
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
|
|
|
Re: if (162 isin $address($nick,2) )
#4471
02/01/03 04:03 AM
|
Joined: Dec 2002
Posts: 3,138
Collective
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
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.
|
|
|
Re: if (162 isin $address($nick,2) )
#4472
02/01/03 04:08 AM
|
Joined: Dec 2002
Posts: 27
Jon
OP
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 27 |
wow it work now thanks to Dana and Collective best wish to both of you on the new year
|
|
|
Re: if (162 isin $address($nick,2) )
#4473
02/01/03 05:56 AM
|
Joined: Dec 2002
Posts: 1,321
Hammer
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,321 |
Either window -c $nick or just halt (which prevents the window opening to begin with).
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!
}
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
|
|
|
|
|
|