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.

changing source code for default banmask type

General support and discussion of Eggdrop bots.
Post Reply
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

changing source code for default banmask type

Post by honeybee »

well iwant to change the default source code for banmask and i m not good with c can anyone do it for me?
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Use this maskhost proc by user.
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

Post by honeybee »

thanks but as i said i wanna change the source code for default banmask type. not tcl. lemme explain this to you by default you get a ban like *!ident@*.host but I dont want that, i want it to be *!*@host.ip
i tried to edit the source code for it its kinda too messy, hope any good C coder can recode it. thanks
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Using user's maskhost proc

Code: Select all

set maskhostDefaultType 2
this will change the default type to *!*@ip. Or you can use this:

Code: Select all

proc maskhost uhost {
 return *!*@[lindex [split $uhost @] 1]
}
Post Reply