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.

easy question: ban type

Old posts that have not been replied to for several years.
Locked
d
deepforest

easy question: ban type

Post by deepforest »

hello i am beginner. i setup to badword.tcl
my eggdrop's bant type is
example: !*@*.aol.com
but i want to my eggdrop's ban type is full ip.
example: !*@user34234.aol.com

can you help me?

thanks for replies.
User avatar
K
Voice
Posts: 34
Joined: Wed Jan 28, 2004 7:31 pm
Location: Romania @sibiu
Contact:

sure

Post by K »

i am sure you got to ban *!*@111112.aol.de on the ban type on the file
d
deepforest

what do you mean?

Post by deepforest »

I dont understand you. i want to My eggdrop's ban type
*!*@full.hostname.com (use badword.tcl )

do you mean me?
a
assgier
Voice
Posts: 4
Joined: Mon Oct 04, 2004 9:54 pm

Post by assgier »

*kick*

i also can't find anything helpful on this forum for such a simple thing as changing the bot's own default bantype (i also want it to do +b *!*@host.domain instead of *!ident@*.domain)...

Have looked in the FAQ, have searched the forum, looked over all .tcl scripts in the scripts/ subdirectory of eggdrop, ofcourse searched in eggdrop.conf and i just can't find anything about it :-?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Reading the scripts configuration settings might be helpful. Some scripts allow settings to set the type of ban format required.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
a
assgier
Voice
Posts: 4
Joined: Mon Oct 04, 2004 9:54 pm

Post by assgier »

Alchera wrote:Reading the scripts configuration settings might be helpful. Some scripts allow settings to set the type of ban format required.
I searched trough them, but the point is that i'm not using scripts for putting people on "shitlist", i'm using the bots own internal ban system (bans all, +ban, -ban, etc.), which works fine except for the fact that it's bantype is incorrect, i'd like to change it :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

For the format *!*@host.isp.com use:

Code: Select all

set banmask [lindex [split $uhost "@"] 1]
For the format *!*@.isp.com use:

Code: Select all

set banmask [lindex [split [maskhost $uhost] "@"] 1]
The internal eggdrop kicks/protections don't have banmask selector types. As far as I know it would randomly ban *!*@host.domain.com. All tcls scripts can be customized to achieve different types of banmasks.

If you don't know how to edit your script to change the banmask:
A script I released ago a few months back does the same thing for BAD WORDS spoken on a channel; named a CHANNEL SWEAR KICKER. You can download utilize that script. It has 20 different banmasks to select from.

http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1019
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

I have found that the easiest solution was studying the way that almost all of MC_8's scripts have this variable hostmask selection thingamajiggy already coded... it has been extremely useful for me personally. His site is listed in the links section... :mrgreen:
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

It's in his moretools or some script like that. That script has several different utilities one of which is the maskhosttype; scripters can use them in their scripts freely.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

:wink: thanks awyeah! That would be the one I was thinkin of :mrgreen:
e
exoexo
Voice
Posts: 3
Joined: Mon Dec 06, 2004 9:48 am

Post by exoexo »

I have the same problem with banmask type. Not with TCL. I added user with +dk flags and mask "User!*@*". So ... when User joins the channel bot set ban *!*@*.domain

(for example joins User!ident@PC1.LanGame.Net - bot set ban of *!*@*.LanGame.Net, but LanGame.Net is a very big ISP, so bot kick more than 100 users from channel!)

So I need to change the mask that bot uses for banning users that are with +dk flags, to change it to be *!*@host ( *!*@PC1.LanGame.Net for example). What and where to change ? eggdrop.conf ? Or something from source before ./configure ?

Sorry for my bad English
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

1. no, you can't change the +k autoban mask

2. you need a script (and since you ask here and not on the idiotic forum of your home network, I may write one for you ;)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

For changing the banmasks in TCL see these.
Suppose in your procedure your user@host variable is $uhost, then:

*!*@*.domain.com ==> [lindex [split [maskhost $uhost] "@"] 1]
*!*@home.domain.com ==> [lindex [split $uhost "@"] 1]
Last edited by awyeah on Tue Dec 07, 2004 10:34 pm, edited 2 times in total.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
e
exoexo
Voice
Posts: 3
Joined: Mon Dec 06, 2004 9:48 am

Post by exoexo »

demond, 10x.

All I want to know was - is there a way to change and how, if it is possible.

Meanwhile I wrote a TCL that is working perfect, exactly as I want to change +k ban mask. But if there was a way to change the mask from the eggdrop source I will prefer that way.

And, of course, I prefer to ask my eggdrop question here, instead of my irc network forum :)

Regards: EXO
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well, of course there is a way - if you know C, modify _maskhost() in src/misc.c to suit your needs

however, you need to be careful, since _maskhost() serves other purposes besides implementing tcl_maskhost() in irc.mod; actually, tcl_maskhost() uses a macro, maskban, which is _maskhost((a),(b),0)
Locked