egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Solved] PubChanComm v1.82

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
m4s
Halfop


Joined: 30 Jan 2017
Posts: 42

PostPosted: Wed Jan 03, 2018 4:00 pm    Post subject: [Solved] PubChanComm v1.82 Reply with quote

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
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 557
Location: Tennessee, USA

PostPosted: Wed Jan 03, 2018 8:35 pm    Post subject: banmask Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
m4s
Halfop


Joined: 30 Jan 2017
Posts: 42

PostPosted: Thu Jan 04, 2018 12:07 pm    Post subject: Re: banmask Reply with quote

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
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 557
Location: Tennessee, USA

PostPosted: Thu Jan 04, 2018 12:41 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
m4s
Halfop


Joined: 30 Jan 2017
Posts: 42

PostPosted: Thu Jan 04, 2018 1:35 pm    Post subject: Reply with quote

Thank You again! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber