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.

duplicate bans remover

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

So, in the post the bans you mentioned above are in Spike's version? Mind doing the same with the one I suggested with the latest changes?

I don't have much time right now to test stuff out right now.
Once the game is over, the king and the pawn go back in the same box.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

It is worth noting, the ban that does not seem to be removed, is the 15th and last ban set in the list.

My bet is that the server is only really accepting 14 mode changes at a time, and the last ban is Not actually set.

Then the script removes the 14 matching bans:)
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

the server accepts 15 mode settings per line actually

i was just wondering why doesnt it remove all matching duplicates regardless

perhaps maybe using stacked per 15

i also tried caesars it only seems to remove 2 or 3 from 30 and also if using 15
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Please try it with the setting of 14 bans at one time, both times it seems to ignore the 15th.

Please test my theory by starting with an empty channel ban list and adding no more than 14 bans at a time.

There is no other good reason it would always remove the 14 and not a 15th, if it existed in the channel ban list.

It would help if you would let me or caesar see this script work, share your channel and network (feel free to private message that info to me).
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

i tested with 14 bans it seemed to have lifted them all

first i added *!*@*.ip

than added

+bbbbbbbbbbbbbb *!*@RifSytes-o11.387.29.04.IP *!*@RifSytes-nvb.556.35.86.IP *!*@RifSytes-82g.190.68.53.IP *!*@RifSytes-a55.957.51.59.IP *!*@RifSytes-48k.337.61.92.IP *!*@RifSytes-f35.133.11.50.IP *!*@RifSytes-q27.186.99.12.IP *!*@RifSytes-619.596.86.72.IP *!*@RifSytes-mb0.415.32.86.IP *!*@RifSytes-x1l.677.14.90.IP *!*@RifSytes-fkw.580.12.02.IP *!*@RifSytes-ef3.338.14.84.IP *!*@RifSytes-pc2.135.01.63.IP *!*@RifSytes-ohd.781.33.90.IP

it removed them all
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

did some more testing seems all fine now

i would like to thank pixelz , spike and ceaser for all input and work

much apreciated as always as this is all volunteer work

im sure this code will benefit many

tnx again.
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

ive come across something weird when setting these bans somehow it removes 3 while they arent duplicates
* Cappuccino sets mode: +bbbbbbbbbbbbbbb *`*!*@* *|*!*@* *-*!*@* *_*!*@* *0*!*@* *1*!*@* *2*!*@* *3*!*@* *4*!*@* *5*!*@* *6*!*@* *7*!*@* *8*!*@* *9*!*@* *[*!*@*
* Cappuccino sets mode: +bbbbb *]*!*@* *{*!*@* *}*!*@* *\*!*@* *^*!*@*
* Cappuccino sets mode: -bbb *[*!*@* *]*!*@* *|*!*@*
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Here's your answer:

Code: Select all

.tcl matchaddr *\{*!*@* *\[*!*@*
Tcl: 1
.tcl matchaddr *\]*!*@* *\}*!*@*
Tcl: 1
The matchaddr isn't as infallible after all. :)
Once the game is over, the king and the pawn go back in the same box.
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

hm ok
Post Reply