This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Detecting server bans but not by "set bounce-bans 1" ?

Old posts that have not been replied to for several years.
Locked
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

I wrote a script to make my eggdrop auto-clear the oldest 6 bans when the list gets to 90 bans (DALnet).
However, upon netsplit rejoin the server rebans many old bans making the list exceed the 90 bans limit many times. My bot goes crazy and starts unbanning the oldest 6 bans many times.
Is there a way to detect server bans by code (Not set bounce-bans 1). I just don't want my script to react and start unbanning old bans when there's a netsplit rejoin.
Thx.
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

use a standard mode "* +b" binding, and check the uhost for a @ (with string match). if there's no @ in the userhost, then its a server setting the mode.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

ok I have this but the rest of the code is still getting executed on server bans after a netsplit return. Any clue why ? Thanks.

bind mode - "*+b*" ub_mode

proc ub_mode {nick uhost hand chan mode victim} {

if {![string match "*@*" $uhost]} { return 0 }

<the rest of the code goes here>
}
Locked