mIRC Home    About    Download    Register    News    Help

Print Thread
#70341 05/02/04 07:27 AM
Joined: Dec 2003
Posts: 5
K
kg4zmp Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Dec 2003
Posts: 5
There is a bot in a channel I hang out in that rebans a few hostmasks everyday that contain vulgar language as part of the hostmask. How can I prevent the mode text from the bot when it does the reban of these hostmasks from being displayed in my client?

#70342 05/02/04 10:31 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
on ^*:BAN:#: if ($nick == botnick) haltdef

This will block ALL the bans made by the bot. If you want only your specific masks not to show up, then you have several options:

1. if there aren't too many, just add them all in a variable, separated by a space:
on ^*:BAN:#: if ($istok($1,%masks,32)) haltdef

2. save them in a hashtable
on ^*:BAN:#: if ($hget(tablename,$1)) haltdef

I would stay away from textfiles/inifiles.
If the bot bans more than one address in a go, you'd have to test if this still works or if you need the on rawmode event.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#70343 05/02/04 05:48 PM
Joined: Dec 2003
Posts: 5
K
kg4zmp Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Dec 2003
Posts: 5
Thanks for the info!

#70344 07/02/04 12:19 AM
Joined: Dec 2003
Posts: 5
K
kg4zmp Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Dec 2003
Posts: 5
Actually I found that this works:

on ^*:BAN:#:if ($istok(%masks,$banmask,32)) haltdef

Thanks for the insight tho - I would have never thought to use $istok smile


Link Copied to Clipboard