|
|
Joined: Dec 2002
Posts: 27
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
|
|
|
|
Joined: Dec 2002
Posts: 144
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
|
|
|
|
Joined: Dec 2002
Posts: 27
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
|
|
|
|
Joined: Dec 2002
Posts: 144
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
|
|
|
|
Joined: Dec 2002
Posts: 3,138
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.
|
|
|
|
Joined: Dec 2002
Posts: 27
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
|
|
|
|
Joined: Dec 2002
Posts: 1,321
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
|
|
|
|
|
|