| View previous topic :: View next topic |
| Author |
Message |
m4s Halfop

Joined: 30 Jan 2017 Posts: 97
|
Posted: Wed Jan 03, 2018 4:00 pm Post subject: [Solved] PubChanComm v1.82 |
|
|
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/ddf4a1749ee283011dafc08d96a70863
Can someone have a look?
Thank you!
Last edited by m4s on Thu Jan 04, 2018 3:32 pm; edited 1 time in total |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Wed Jan 03, 2018 8:35 pm Post subject: banmask |
|
|
search and find this line (twice)... | Code: | set banmask "*!*[string trimleft [string range $bhost [string first "!" $bhost] end] ?^~-_+?]"
|
and make them more like... | Code: | 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
. |
|
| Back to top |
|
 |
m4s Halfop

Joined: 30 Jan 2017 Posts: 97
|
Posted: Thu Jan 04, 2018 12:07 pm Post subject: Re: banmask |
|
|
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? |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Thu Jan 04, 2018 12:41 pm Post subject: |
|
|
| Code: | | 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
. |
|
| Back to top |
|
 |
m4s Halfop

Joined: 30 Jan 2017 Posts: 97
|
Posted: Thu Jan 04, 2018 1:35 pm Post subject: |
|
|
Thank You again!  |
|
| Back to top |
|
 |
|