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.

bind splt problem ??

Old posts that have not been replied to for several years.
Locked
G
Guest

Post by Guest »

I`ve got a problem when somebody get netsplit from my channel like Tcl error too many argument .. could somebody plz tell my what is wrong with my tcl?

bind join - * proc_check
proc_check {chan} {
set chan [string tolower $chan]
set resetchan($chan) 0
}

bind splt - * proc_reset
proc_reset {chan} {
global resetchan
set chan [string tolower $chan]
incr resetchan($chan) -1
return 0
}

I`m using eggdrop1.4.5
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Look at the begining of your 2 proc's and look through the file tcl-commands.doc in the doc directory of eggdrop.

You will see that more arguments are required in the definition of the command.

You may only need the chan cariable, but you still have to define the rest.
G
Guest

Post by Guest »

I did fixed the proc.
bind join - * check
proc check {chan} {
set chan [string tolower $chan]
set resetchan($chan) 0
}

bind splt - * reset
proc reset {chan} {
global resetchan
set chan [string tolower $chan]
incr resetchan($chan) -1
return 0
}
Do i have to put nick host handle in my proc like :
proc reset (nick host hand chan} {}
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

yes
Locked