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.

change banmask in quitban.tcl 1.1 by slennox

Old posts that have not been replied to for several years.
Locked
z
zlobus
Voice
Posts: 16
Joined: Sun Sep 12, 2004 12:07 pm

change banmask in quitban.tcl 1.1 by slennox

Post by zlobus »

i'm using quitban.tcl 1.1 by slennox. I just want bot to ban people with this banmask: *!ident@host.com, but not *!*@host.com
Here is ban code:

Code: Select all

 newchanban $chan *!*[string tolower [string range $uhost [string first @ $uhost] end]] quitban $qb_reason $qb_bantime
Last edited by zlobus on Sat Feb 19, 2005 3:17 pm, edited 1 time in total.
User avatar
avilon
Halfop
Posts: 64
Joined: Tue Jul 13, 2004 6:58 am
Location: Germany

Post by avilon »

Code: Select all

*!$uhost
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

to expand on that a little better....
By changing this ----->

Code: Select all

newchanban $chan *!*[string tolower [string range $uhost [string first @ $uhost] end]] quitban $qb_reason $qb_bantime
into something like this ------->

Code: Select all

newchanban $chan *!*$uhost quitban $qb_reason $qb_bantime
should enable the bot to ban lamers like ----> *!*lameass@n00bs.do.it.best.us
Hoep this helps! :mrgreen:
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

newchanban $chan [maskhost $uhost] quitban $qb_reason $qb_bantime
z
zlobus
Voice
Posts: 16
Joined: Sun Sep 12, 2004 12:07 pm

Post by zlobus »

you didn't understand... i want *!*user@host.domain banmask... So i must to put "set ident blahblahblah" before ban, and then ban will be something like this newchanban $chan *!*$ident.[string tolower [string range $uhost [string first @ $uhost] end]] quitban $qb_reason $qb_bantime

or i'm wrong?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

You are wrong. Did you not try yoohoo's or gb's or avilons answers? Did you just feel like ignoring the people you asked for help??

You have been given 3 valid ways to change the banmask I suggest you try them. Where are you getting $ident from in your reply?
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
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

YooHoo wrote:

Code: Select all

newchanban $chan *!*$uhost quitban $qb_reason $qb_bantime
I believe it is you who doesn't understand properly. :!: Eggdrop naturally bans users based on thier complete uhosts, which includes both the targets IDENT as well as thier DOMAIN. What slennox coded into quitban.tcl altered this behavior so as to not include the victim's ident (which can be altered at will) when placing ban. By changing the newchanban line as directed in the previous posts, you will get the result you requested in your original request.
:mrgreen:
Locked