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.

also looking for a lineflood.tcl

Old posts that have not been replied to for several years.
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

also looking for a lineflood.tcl

Post by Mackenzie »

Hello all,
i'm looking for a lineflood.tcl (no bans on it)

example:

[19:04] <Test> heyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy !!
[19:04] *** sisie was kicked by @FloodBot (lineflood: 87)


tcl kicks people who type to long lines (with counter)

tcl must kick with the minimum of 50 characters but count further

tnx
Mack
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Code: Select all

bind pubm - * longword

proc longword {nick uhost hand chan text} { 
  if {[string length $text] > 50}  {
    putkick $chan $nick "long line: [string length $text] chars" 
  }
}
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

works nice but it count spaces to

like @@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@
then the bot kick also for lineflood

is it not possibel to kick when somebody use the lineflood without the spaces?

greetz
Mack
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

bind pubm - * longword 

proc longword {nick uhost hand chan text} { 
  set l [join [split $text] ""]
  if {[string length $l] > 50}  { 
    putkick $chan $nick "long line: [string length $l] chars" 
  } 
}
Elen sila lúmenn' omentielvo
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

hoi papillon...

nope same effect

[05:20] <@Mackenzie> aaaaaaaaaaaaaaaaaaaatestaaaaa aaaaaaaaaaaaaaaaaaaaaa
[05:20] *** kick by Xanti (Line-Flood: 51 chars)

there was one space in the line

greetz
Mack
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I am guessing what you want, is a script that will punish, if some1 lines floods, without spaces.

Code: Select all

bind pubm - * longword 

proc longword {nick uhost hand chan text} { 
  regsub { } $text {} n
  if {([string length $text] > 50) && ([string length $text] == [string length $n])}  { 
    putkick $chan $nick "long line: [string length $text] chars" 
  } 
}
However, they will only need one space in the line to get around this, which is rather simple.
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

jup almost good

just XXXXX xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
don't work....

is that possibel with a split?

greetz
Mack
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

still have troubles

[17:10] <+Test> x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x

[17:11] <+Test> xxxxxxx XXXXXXXXXXXXXXXXXXXXXXXXXXXX xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

bot don't react on this kind of lineflood....

is there no way to solve this problem?
meaning is that this tcl count the chars and strings and then kick

I know it is difficul but i'm a newbee on tcl code :-?

greetz
Mack
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

I don't exactly understand what u want to do...
do u want the bot to kick users who write a line longer than 50 chars (exluding spaces)? or just if a word is > 50 chars?
Elen sila lúmenn' omentielvo
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

Papillon...

can it be done for both?
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

at this case....what is the best solution?
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

a couple examples what they are doing on the channel

[17:39] <+horror> x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
[17:39] <+horror> x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x


[17:35] <+horror> misc, slukes ze xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


greetz
Mack
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

bind pubm - * longword 

proc longword {nick uhost hand chan text} { 
  set l [join [split $text] ""] 
  if {[string length $l] > 50}  { 
    putkick $chan $nick "long line: line length [string length $l] chars" 
    return
  } 
  if {[llength [split $text]] > 1} {
    set al [split $text]
    foreach l $al {
      regsub { } $al {} n 
      if {[string length $al] > 50}  { 
      putkick $chan $nick "long line: word length [string length $text] chars" 
    }
  } 
} 
*not tested
Elen sila lúmenn' omentielvo
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

[18:50] Tcl error in file 'g-force.conf':
[18:50] missing close-brace
while executing
"proc longword {nick uhost hand chan text}"
(file "scripts/lineflood.tcl" line 3)
invoked from within
"source scripts/lineflood.tcl"
M
Mackenzie
Voice
Posts: 36
Joined: Sun Jul 28, 2002 2:08 pm
Location: Belgium
Contact:

Post by Mackenzie »

found it...i think

Code: Select all

bind pubm - * longword 

proc longword {nick uhost hand chan text} { 
  set l [join [split $text] ""] 
  if {[string length $l] > 50}  { 
    putkick $chan $nick "long line: line length [string length $l] chars" 
    return 
  } 
  if {[llength [split $text]] > 1} { 
    set al [split $text] 
    foreach l $al { 
      regsub { } $al {} n 
      if {[string length $al] > 50}  { 
      putkick $chan $nick "long line: word length [string length $text] chars" 
    } 
  } 
} 
}

put extra closebrace at the end
Locked