It sounds like you want to append to the file. So first of all, open the file in mode "a" instead of "w" (w overwrites it). Then, get rid of your foreach loop, because $nick is only one thing, not a list. So just puts $f $nick, not a loop for it.
If you only want to tell if it's an integer (positive or negative) you could use this: proc is_integer {x} { if [catch {incr x}] {return 0} return 1 } For a number with a decimal point, you could do a combination of regexp and expr, i.e. check to see that the string is only "+-.[0-9]", the...
You can try this, I made the command ".newhosts" because it's shorter than ".overwritehosts" heh. bind dcc m newhosts newhosts proc newhosts {hand idx text} { set parts [split $text] set target [lindex $text 0] set newhosts [lrange $text 1 end] if {![validuser $target]} { putdcc ...
Maybe the problem is with the script. It sounds like your bot is able to join the channel with the weird letter in it, so it must be handling the utf correctly.
Maybe you have an incompatible version of patch. It was created with: diff - GNU diffutils version 2.7 And it applies correctly with my: patch 2.5.4 Try checking the manual page for patch ("man patch") and look for an argument you can pass to make it compatible with gnu patch, or try a con...
You could do it with one regsub and a subst. It's probably better to just do 2 regsubs though :) set str "this is 1 test of 2 things" set keys(1) one set keys(2) two regsub -all 1|2 $str {${keys(&)}} str set str [subst $str] Just make sure your source string doesn't have special charac...
The patch has been incorporated into eggdrop 1.6 (cvs version). I think 1.6.7 will be released in a few days, so it might be easiest to just wait for that. Or you can download the cvs version. You can get that at ftp://ftp.eggheads.org/pub/eggdrop/source/current/eggdrop1.6-current.tar.gz If you want...