bind join -|- "*" join
proc join {nick host hand chan arg} {
set fname "/usr/share/fortune/futurama"
set fp [open $fname "r"]
set data [read -nonewline $fp]
close $fp
set lines [split $data "%"]
set numlines [llength $lines]
set num [rand $numlines]
set full [lindex $lines $num]
set lines2 [split $full "\n"]
set numlines2 [llength $lines2]
foreach i $lines2 {
putserv "PRIVMSG $chan :$i"
}
}
if i give the arguments he request in the error message then he gives the same error back only instead on 1 time join he would give 2 times join
like in "join join nick ..."
it also causes other scripts to give the same fault
jupiler wrote:changed it did a .restart
even did a a die and restarted it
still same prob
Either you didn't edit/upload the correct TCL, or you didn't rename the proc to something like 'my_join', or you have another script that is redefining the 'join' command as well, or you did change it and are getting a different error.
Check tcl-commands.doc - the join bind adds 4 arguments when the command is called, not five, so remove the "arg" from your args and it should work just fine.