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.

tcl error in clone script

Old posts that have not been replied to for several years.
Locked
H
Happ

Post by Happ »

I get this in dcc chat with my bot:
mc:cd:part called with too many arguments
section it refers too looks like this:
bind part - * mc:cd:part
proc mc:cd:part {nick uhost hand chan} {
global mc_cd botnick
set chan [string tolower $chan]
set host [string range $uhost [expr [string first @ $uhost]+1] e]
if {$nick == $botnick} {
foreach array [array names mc_cd] {
if {([string index $array 0] == "!") &&
([string tolower [lindex [split $array :] 1]] == $chan)} {
unset mc_cd($array)
}
}
} {
if {![info exists mc_cd(!$host:$chan)]} {return 0}
incr mc_cd(!$host:$chan) -1
}
}
this is in mc.clonedetector.tcl v 1.0
any idea's?? I cant find a clone detector that works with 1.6.7 eggdrop :sad:
E
Errtu

Post by Errtu »

Try this. Replace

Code: Select all

proc mc:cd:part {nick uhost hand chan} { 
with

Code: Select all

proc mc:cd:part {nick uhost hand chan msg} { 

I do have to say that my tcl knowledge is far from good, but tcl-commands.doc says you have to call the proc like this: {nick uhost hand chan partmsg}

Hope it helps though...

Errtu
H
Happ

Post by Happ »

Thanks Errtu but that didnt work. Also the bot is banning OPS and people that aint even got clones in the channel. I emailed the author. Email came back "unknown address".
I have a feeling this script wasnt made to work with the 1.6.* bots. I will wait til somebody makes one that does. :smile:
S
SnOoPDoGg187

Post by SnOoPDoGg187 »

not sure if this will help ya or not but i'm using a newer version of that script then u are not sure though but it says

# Clone Detector v1.0.0.7 by MC_8 - Carl M. Gregory <gregory@worldinter.net>
# This script will only work on eggdrop 1.5+ series.

the guys web site must be down cause i tried to get on ti but no luck it should be in the tcl archives at http://www.egghelp.org/tcl.shtml

if it is a newer one and u can't find let me know i can get it to ya some how : )

SnOoP
Locked