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.

banmask assistance

Old posts that have not been replied to for several years.
Locked
t
timew
Voice
Posts: 7
Joined: Thu Feb 10, 2005 7:29 am

banmask assistance

Post by timew »

Hi,

I've just read through some of the banmask pages available on this already and I'm a tad confused. It seems a full procedure is needed to be added to the bot.

I'm used a default compile of eggdrop 1.6.15 and I use a user called "lamer" with flags +dk and with hosts added to it that I want to ban.

Most of these are *!*@domain.com type bans but it bans them at *!ident*@domain.com and I really want it to ban at *!*@domain.com over any sort of ident banning.

Is there a simple way I can make the eggdrop ban at the exact host that is given in the lamer users host. I thought this would be the most obvious system to use. Use the host that's entered. Otherwise a solution for changing / modding the bot to just ban at *!*@domain.com type bans and I'll be careful on the hosts I'll add.

If it's easier to use a TCL script that contains hosts and uses this style of banning I'm all ears. Please pass on a link it's available.

Thanks for any help in advance
TimeW
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

to ban just a host from the partyline do

Code: Select all

.+ban *!*@domain.com
for a global ban or

Code: Select all

.+ban #channel *!*@domain.com
for channel specific bans. you can add a reason at the end of the bans if you wish todo so. this is the only way todo as you asked without using a specific script.

Hope this helps.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

^DooM^ wrote:

Code: Select all

.+ban #channel *!*@domain.com
### +ban <hostmask> [channel] [%<XdXhXm>] [comment]
Adds a ban to the list of permanent bans stored on the bot,
with optional comment and bantime. This ban will be in effect for
every channel on the bot if no channel is supplied, and is stored
with your nickname and comment. Prefixing a comment with @ will
make it only visible within the bot. Bantime has to be expressed
in days, hours and/or minutes.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

:oops: Doh i always did get that the wrong way round..
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

^DooM^ wrote::oops: Doh i always did get that the wrong way round..
lol, happens to me alot with different commands :P
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

In TCL binds for the eggdrop you in almost all cases have the user@host of the user who triggered the bind. Generally we use the variable as "host", "uhost" or whatever we like.

Supposing the variable is: $uhost
The persons ident@domain.host.com will be $uhost.

- So we just split $uhost from @ ==> [split $uhost @]
- Now we have to 2 elements in a list ==> { ident domain.host.com }
- Then we choose the 2nd element, which has list index number "1"
- [lindex $split_uhost 1] ==> { domain.host.com }

So if we make a new variable for your banmask, it will be:

set banmask "*!*@[lindex [split $uhost @] 1]"


(Note: We have to add *!*@ infront because you want the banmask in that format)
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

awyeah wrote:- [lindex $split_uhost 1] ==> { domain.host.com }
should of been.

Code: Select all

- [lindex [split $uhost @] 1] ==> { domain.host.com } 
damn those typo's :lol:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I think what he meant with $split_uhost is the splitted uhost that he gave in his first step.
awyeah wrote:- So we just split $uhost from @ ==> [split $uhost @]
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Aye my bad sorry mate..
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Locked