<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/forum/7" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2025-12-01T04:43:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/forum/7</id>

		<entry>
		<author><name><![CDATA[Carlin0]]></name></author>
		<updated>2025-12-01T04:43:00-04:00</updated>

		<published>2025-12-01T04:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113398#p113398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113398#p113398"/>
		<title type="html"><![CDATA[Tcl FAQ • tclarchive has been moved]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113398#p113398"><![CDATA[
tclarchive has been moved to <a href="https://tclarchive.github.io/" class="postlink">https://tclarchive.github.io/</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12778">Carlin0</a> — Mon Dec 01, 2025 4:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2024-03-04T08:32:57-04:00</updated>

		<published>2024-03-04T08:32:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112605#p112605</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112605#p112605"/>
		<title type="html"><![CDATA[Tcl FAQ • Re: Any specific IDEs]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112605#p112605"><![CDATA[
This pastebin:<br><br><a href="http://paste.tclhelp.net/" class="postlink">http://paste.tclhelp.net/</a><br><br>has a "syntax check" function.   Finds your mistakes for you.   It can be VERY helpful.   <br><br>Unfortunately, the ability to post with password protection is broken.  Has been, for a long time now.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">    <br>You can still post there, but you just can't make it private.<br><br>No matter, for syntax checking though.    You don't even have to post at all to use that function.     <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Mar 04, 2024 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-03-04T02:56:23-04:00</updated>

		<published>2024-03-04T02:56:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112601#p112601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112601#p112601"/>
		<title type="html"><![CDATA[Tcl FAQ • Re: Any specific IDEs]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112601#p112601"><![CDATA[
Some editors, as notepad++ with windows, have tcl code highligting.<br>komodo has been retired but you can find OpenKomodoIDE @ <a href="https://github.com/ActiveState/OpenKomodoIDE" class="postlink">https://github.com/ActiveState/OpenKomodoIDE</a> (didn't tested)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Mar 04, 2024 2:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ConnieHarris]]></name></author>
		<updated>2024-03-04T01:40:08-04:00</updated>

		<published>2024-03-04T01:40:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112599#p112599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112599#p112599"/>
		<title type="html"><![CDATA[Tcl FAQ • Any specific IDEs]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112599#p112599"><![CDATA[
Are there any specific IDEs or editors that you find particularly useful for TCL script development? Any features that enhance the TCL coding experience?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13133">ConnieHarris</a> — Mon Mar 04, 2024 1:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Chymookie]]></name></author>
		<updated>2016-04-10T06:08:05-04:00</updated>

		<published>2016-04-10T06:08:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104917#p104917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104917#p104917"/>
		<title type="html"><![CDATA[Tcl FAQ • ]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104917#p104917"><![CDATA[
Original Poster - this helped clarify a few things in regards to a colorfaq I was directed to that wasn't as detailed.<br><br>If there was an emote for thumbs up, or rock on - it'd be coming your way!<br><br>I'll rpost again if/when I anything comes up from using codes in regards to any scripts I learn/work on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12615">Chymookie</a> — Sun Apr 10, 2016 6:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tezoost]]></name></author>
		<updated>2015-02-11T06:05:07-04:00</updated>

		<published>2015-02-11T06:05:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103474#p103474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103474#p103474"/>
		<title type="html"><![CDATA[Tcl FAQ • ]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103474#p103474"><![CDATA[
This will show a multi line traceback to the last error. If you read this you will know what you have to do to prevent this error. <br>The ugly point is, errorInfo shows always the last error. So, if you use catch and a error has been caused it will show that error last, so be fast Wink.<br><br><br><br><br>_____________________________________________<br>Usman<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12488">tezoost</a> — Wed Feb 11, 2015 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-02-19T09:23:02-04:00</updated>

		<published>2011-02-19T09:23:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96104#p96104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96104#p96104"/>
		<title type="html"><![CDATA[Tcl FAQ • ]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96104#p96104"><![CDATA[
TCL_no_TK:<br>Don't treat strings as lists..<div class="codebox"><p>Code: </p><pre><code>llength $text...foreach t $text {</code></pre></div>Also, rather then using expr all the time, use the incr command to increase the value of a variable:<div class="codebox"><p>Code: </p><pre><code>set total [expr {$total+1}] =&gt; incr total</code></pre></div>This does not make any sense; you're inside a foreach-loop, and you say $mx is the length of the list your are iterating through.. Thus the loop would have completed before this conditional becomes true:<div class="codebox"><p>Code: </p><pre><code>if {($total != $mx)} {     set total [expr {$total+1}]    } else {     break    }</code></pre></div>Also, your example seems to be missing 3 items, you create 17 instances of "bunny-rabbits", but I only count 14 returned.<br><br>I'd rewrite that code somewhat like this:<div class="codebox"><p>Code: </p><pre><code>proc makenice {text size} {  set items [split $text]  set length [llength $items]  incr size -1  for {set i 0} {$i &lt;$length} {incr i} {    puts [join [lrange $items $i [incr i $size]]]  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Feb 19, 2011 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2011-02-19T15:46:19-04:00</updated>

		<published>2011-02-19T04:25:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96100#p96100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96100#p96100"/>
		<title type="html"><![CDATA[Tcl FAQ • ]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96100#p96100"><![CDATA[
This is losely based of my take on <a href="http://wiki.tcl.tk/1774" class="postlink">http://wiki.tcl.tk/1774</a> needed a way to limit the words in a long line of text, so came up with this, its really easy to include in other scripts/snipplets <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> hope someone finds it useful<br>EDIT (works for me):<div class="codebox"><p>Code: </p><pre><code>proc makenice {tmp size} {  set mx [llength $tmp]  set current 0  set total 0   foreach t $tmp {    set total [expr {$total+1}]    if {($mx &gt; $total)} {     lappend out "$t"     set current [expr {$current+1}]      if {($current == $size)} {        puts "$out"        set current 0        set out [list]      }    } else {     lappend out [join [lrange [split $tmp] [expr {$total-1}] $mx]]      puts "$out"    }   }}</code></pre></div> And i tested it this time <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <div class="codebox"><p>Code: </p><pre><code>% llength $mylist17% makenice $mylist 6line1 line2 line3 line4 line5 line6line7 line8 line9 line10 line11 line12line13 line14 line15 line16 line17%</code></pre></div> This is the old code (leaving it here so post below makes sense)<div class="codebox"><p>Code: </p><pre><code>proc makenice {text size} {  set mx [llength $text]  set current 0  set zap $size  set total 0  set sent 0  set tidy [expr {$mx / $zap}]   foreach t $text {    if {($total != $mx)} {     set total [expr {$total+1}]    } else {     break    }    if {($sent == $tidy)} {     set out [join [lrange [split $text] $total $mx]]     puts "$out"     break    }     if {($current == $zap)} {      puts "$out"       set sent [expr {$sent+1}]       set current 0       set out [list]     } else {      lappend out "$t"       set current [expr {$current+1}]     }   }}</code></pre></div> Example: <div class="codebox"><p>Code: </p><pre><code>% makenice "[lrepeat 17 "bunny-rabbits"]" "6"bunny-rabbits bunny-rabbits bunny-rabbits bunny-rabbits bunny-rabbits bunny-rabbitsbunny-rabbits bunny-rabbits bunny-rabbits bunny-rabbits bunny-rabbits bunny-rabbitsbunny-rabbits bunny-rabbits%</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sat Feb 19, 2011 4:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jurist111]]></name></author>
		<updated>2010-10-23T20:15:12-04:00</updated>

		<published>2010-10-23T20:15:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94834#p94834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94834#p94834"/>
		<title type="html"><![CDATA[Tcl FAQ • hi]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94834#p94834"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>array set colors { blue \0032 green \0033 red \0034 purple \0036 orange \0037 yellow \0038 lightgreen \0039 lightblue \00312 pink \00313 grey \00314 lightgrey \00315 nocolor \003 bold \002 underline \037 } foreach {color code} [array get colors] { proc $color {} "return $code" } </code></pre></div>where to give this colors in eggdrop .. i basically wants to create color questions i.e<br>blue|!react fast! Guess the color ------&gt; <br>where n how i can give  the color ?<br>it will b in question file?<br>or trivia tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11331">jurist111</a> — Sat Oct 23, 2010 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2010-09-06T16:39:45-04:00</updated>

		<published>2010-09-06T16:39:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94226#p94226</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94226#p94226"/>
		<title type="html"><![CDATA[Tcl FAQ • Re: Basic File Operations - Evaluating variables read from f]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94226#p94226"><![CDATA[
<blockquote class="uncited"><div>If I have variables, such as $nick or $arg, in the file, it doesn't evaluate the variables. Instead, it just leaves it at $nick or $arg.<br>Is there any way to evaluate the variables?<br>using [eval] makes Tcl want to use the first word of the line as a command, which is not appropriate when I have, say:<br>putmsg $chan "[eval [readFile filename.txt]]"<br>(readFile is a seperate process that reads the file and returns a random line)</div></blockquote>You need to use <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/subst.htm" class="postlink"><strong class="text-strong">subst</strong></a> command. Look at this example: <div class="codebox"><p>Code: </p><pre><code>        set realmsgs {         "Hi, how are you?"         "Hi $nick!"         "Hello $nick, welcome to $chan"         "]]] WELCOME to $chan!!!11111 ^^ ^^ [[["         "Hi [$nick], you have to pay 20$ to enter here"     }          bind join - * greet     proc greet {nick host hand chan} {         set greetmsg [lindex $::realmsgs [rand [llength $::realmsgs]]]         set greetmsg [subst -nocommands $greetmsg]         putserv "PRIVMSG $nick :$greetmsg"     }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Mon Sep 06, 2010 4:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[A Hylian Human]]></name></author>
		<updated>2010-09-06T12:03:19-04:00</updated>

		<published>2010-09-06T12:03:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94223#p94223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94223#p94223"/>
		<title type="html"><![CDATA[Tcl FAQ • Basic File Operations - Evaluating variables read from file]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94223#p94223"><![CDATA[
If I have variables, such as $nick or $arg, in the file, it doesn't evaluate the variables. Instead, it just leaves it at $nick or $arg.<br>Is there any way to evaluate the variables?<br>using [eval] makes Tcl want to use the first word of the line as a command, which is not appropriate when I have, say:<br>putmsg $chan "[eval [readFile filename.txt]]"<br>(readFile is a seperate process that reads the file and returns a random line)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11346">A Hylian Human</a> — Mon Sep 06, 2010 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-07-16T00:31:21-04:00</updated>

		<published>2010-07-16T00:31:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93557#p93557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93557#p93557"/>
		<title type="html"><![CDATA[Tcl FAQ • Re: Tcl and help related links]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93557#p93557"><![CDATA[
<blockquote class="uncited"><div>Here is a selection of links, that should give you an idea of places to go, when you need to start programing in Tcl, learning more about the commands provided by eggdrop/Tcl and more afvanced areas.<br><br>...<br><br><a href="http://www.suninet.nl/tclguide/" class="postlink">http://www.suninet.nl/tclguide/</a> - One of the best guides to coding in Tcl, and heavily focused on using it in eggdrop.<br></div></blockquote>It is here now:   <a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a><br>and it is still very good.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Jul 16, 2010 12:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-11-09T17:50:15-04:00</updated>

		<published>2009-11-09T17:50:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90864#p90864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90864#p90864"/>
		<title type="html"><![CDATA[Tcl FAQ • ]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90864#p90864"><![CDATA[
The big issue/difference is the blocking behaviour of the connection...<br>For accepted and refused connection attempts, that's not a big deal, but for dropped connections (like a lot of "stealth" firewalls these days do it), that means your script will block for quite some time, until the kernel figures the connection attempt got lost somewhere and times it out...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Nov 09, 2009 5:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2009-11-09T14:58:09-04:00</updated>

		<published>2009-11-09T14:58:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90862#p90862</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90862#p90862"/>
		<title type="html"><![CDATA[Tcl FAQ • ]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90862#p90862"><![CDATA[
I was wondering, .. <br><br>if i just made regular socket connection which is blocking and without the async and once it's active  i would fconfigure socket -blocking 0 and fconfigure socket -buffering line .. would that make it a non blocking socket cause i don't see it block anymore, my point is, can anyone tell me the difference and is it worth going through all that fileevent crap with vwait ... instead wouldn't it be easier just to use fconfigure?<br><br>ofcourse if you don't mind the connecting of the socket to be blocking..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Nov 09, 2009 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-02-28T13:21:50-04:00</updated>

		<published>2009-02-28T13:21:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87615#p87615</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87615#p87615"/>
		<title type="html"><![CDATA[Tcl FAQ • ]]></title>

					<category term="Tcl FAQ" scheme="https://forum.eggheads.org/viewforum.php?f=7" label="Tcl FAQ"/>
		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87615#p87615"><![CDATA[
When dealing with namespaces, and making sure bindings work correctly, I'd create a separate namespace called eggdrop with a replacement for the bind function, utilizing the <strong class="text-strong">namespace code</strong> along with <strong class="text-strong">uplevel</strong> to capture the actual namespace. No more hazzle with <strong class="text-strong">namespace current</strong>..<br>Keep in mind that your binds will look a little messy however.<br><div class="codebox"><p>Code: </p><pre><code>namespace eval eggdrop {#First export functions for easy access: namespace export bind proc bind {type flag mask proc} {  ::bind $type $flag $mask [uplevel 1 [list namespace code $proc]] }}</code></pre></div>To use this, you'd simply do something like this:<div class="codebox"><p>Code: </p><pre><code>namespace eval myspace { #import the namespace along with bind, so we don't have to use the long version ::eggdrop::bind namespace import ::eggdrop::* proc myproc {nick host handle text} {  puthelp "PRIVMSG $nick :Hello $nick! I see you from $host, know you as $handle, and recieved $text from you." } bind msg - foo myproc}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Feb 28, 2009 1:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
