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.

[Solved] PubChanComm v1.82

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
m4s
Halfop
Posts: 97
Joined: Mon Jan 30, 2017 3:24 pm

[Solved] PubChanComm v1.82

Post by m4s »

Hello!

I would like to ask You to change the ban mask in this script.

Now the ban mask is *!*user@full.host.
I want *!*@full.host ban.

https://gist.github.com/ddf4a1749ee2830 ... 8d96a70863

Can someone have a look?
Thank you!
Last edited by m4s on Thu Jan 04, 2018 3:32 pm, edited 1 time in total.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

banmask

Post by SpiKe^^ »

search and find this line (twice)...

Code: Select all

 set banmask "*!*[string trimleft [string range $bhost [string first "!" $bhost] end] ?^~-_+?]" 

and make them more like...

Code: Select all

 set banmask "*!*@[lindex [split $bhost @] 1]"
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
User avatar
m4s
Halfop
Posts: 97
Joined: Mon Jan 30, 2017 3:24 pm

Re: banmask

Post by m4s »

Super, thank you it works!

One more short question!
If I want to set this ban mask *nick*!*@* how would I have modified the lines?
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Code: Select all

set banmask "$target!*@*"
NOTE: nick is not part of $bhost ($bhost = user@host)
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
User avatar
m4s
Halfop
Posts: 97
Joined: Mon Jan 30, 2017 3:24 pm

Post by m4s »

Thank You again! :)
Post Reply