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.

newban & newchanban banning uncomplete ident

Old posts that have not been replied to for several years.
Locked
p
pumpk1ns
Voice
Posts: 13
Joined: Thu Oct 24, 2002 4:27 am

newban & newchanban banning uncomplete ident

Post by pumpk1ns »

Hi, i've got problem with newban & newchanban tcl commands. It seems always banning uncomplete ident (missing 1 last char) if the 1st string of the ident contain chars "~", "_", or some others and the length of the ident are more than 6 chars. Please take a look at this msgs from my partyline console (the bold string). I'm using eggdrop1.6.17 & Tcl 8.4.7

<me> .tcl set testing "*!*_aaabbbccc@localhost"; newchanban #testingchan $testing testz "testing" 1
<bot> Tcl:
<bot> #testingchan: mode change '+b *!*_aaabbbcc@localhost' by bot!testbot@localhost
<bot> gerl kicked from #testingchan by bot: Banned: testing
<bot> [05:32] gerl (_dddeeefff@localhost) joined #testingchan.
<me> .tcl set testing "*!*_dddeeefff@localhost"; newchanban #testingchan $testing testz "testing" 1
<bot> Tcl:
<bot> [05:32] #testingchan: mode change '+b *!*_dddeeeff@localhost' by bot!testbot@localhost
<bot> [05:32] gerl kicked from #testingchan by bot: Banned: testing

Is this a bug from eggdrop1.6.17 or just something missing?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

it probably get cut off at the end because you feed it faulty idents, there's a max limit of 10chars, that includes your wildcard.
p
pumpk1ns
Voice
Posts: 13
Joined: Thu Oct 24, 2002 4:27 am

Post by pumpk1ns »

In my example above the ident only contain 8 chars including the wildcard. So it doesn't a faulty idents I think and it doesn't over limit the max limit of 10 chars. So any other idea to fix this probs?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Just use putserv to kick and ban the user. If you really need a sticky ban then go ahead and use a small tcl script which binds on join, checking certain hosts, if they match, ban and kick them like newchanban: *!*[lindex [split $uhost "@"] 0]@[lindex [split $uhost "@"] 1] or just *!*$uhost
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Looks like 11 to me
.tcl string length *_aaabbbccc
Tcl: 11
You can always use maskhost to make sure you have a properly masked host
.tcl maskhost _aaabbbccc@localhost
Tcl: *!*abbbccc@localhost
p
pumpk1ns
Voice
Posts: 13
Joined: Thu Oct 24, 2002 4:27 am

Post by pumpk1ns »

Ok thanks guys, the maskhost command is very usefull. It solved the probs now. Thanks again gb & awyeah ;)
Locked