<?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/topic/4292" />

	<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>2003-05-10T12:47:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-05-10T12:47:24-04:00</updated>

		<published>2003-05-10T12:47:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20018#p20018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20018#p20018"/>
		<title type="html"><![CDATA[botnick regain tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20018#p20018"><![CDATA[
ok, thanks...<br><br>now i can see clearly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat May 10, 2003 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-10T12:10:02-04:00</updated>

		<published>2003-05-10T12:10:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20017#p20017</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20017#p20017"/>
		<title type="html"><![CDATA[botnick regain tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20017#p20017"><![CDATA[
$var and ${var} are the same.<br><br>You use the {} method, when you need to place text together, eg.<br><div class="codebox"><p>Code: </p><pre><code>set var "$varthis sting"set var "${var}this string"</code></pre></div>YOu can see clearly hwo this is used, to provide exact control over names. It is also needed in situation where you use a - in the variable name. EG.<br><div class="codebox"><p>Code: </p><pre><code>set this-var 15set thatvar 20expr ${this-var}-$thatvar</code></pre></div>Without it, you can see the issue. This - issue is a little more deeper than this, and you should use {} whenever there is a - in the var name.<br><br>The :: is to do with namespaces. I sugest reading up about namespaces in the Tcl man pages, but you should see hwo this works.<br><br>At any 1 time, you can access a command or variable from any namespace, using the fully qualified name. This is irispective of the command or variable scope.<br><br>The global namespace is called ::. That should give you a hint as to why you use ::.<br><br>With variable scope, you have to import a global variable to use its existing value<br><div class="codebox"><p>Code: </p><pre><code>set a "test"proc test {} {  global a  puts stdout $a}</code></pre></div>Because usign the fully qualified name doesn't care about scope, you don't need to import it.<br><div class="codebox"><p>Code: </p><pre><code>set a "test"proc test {} {  puts stdout $::a}</code></pre></div>The added benefit of this is long winded code segments. You can clearly distinguish between global and local variables, and it saves jumping to the start of the proc, just to import a variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat May 10, 2003 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-05-10T11:01:54-04:00</updated>

		<published>2003-05-10T11:01:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20011#p20011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20011#p20011"/>
		<title type="html"><![CDATA[botnick regain tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20011#p20011"><![CDATA[
<blockquote class="uncited"><div>Are you sure about the ![isbotnick $nick] thing? Should not it be ![isbotnick $::nick]? Just asking..</div></blockquote>btw : whats the difference between $var, $::var and ${var} ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat May 10, 2003 11:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-10T06:24:32-04:00</updated>

		<published>2003-05-10T06:24:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20003#p20003</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20003#p20003"/>
		<title type="html"><![CDATA[botnick regain tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20003#p20003"><![CDATA[
Are you sure about the ![isbotnick $nick] thing? Should not it be ![isbotnick $::nick]? Just asking..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat May 10, 2003 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2003-05-02T22:28:01-04:00</updated>

		<published>2003-05-02T22:28:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19754#p19754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19754#p19754"/>
		<title type="html"><![CDATA[botnick regain tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19754#p19754"><![CDATA[
I recommend a small tcl script to speed up the process also.<br><div class="codebox"><p>Code: </p><pre><code>proc fastregain {} {  utimer 5 fastregain  if {$::server != "" &amp;&amp; ![isbotnick $nick]} {    putquick "ISON $::botnick $::nick $::altnick  }}# now start the regain processfastregain</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Fri May 02, 2003 10:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-05-02T13:33:47-04:00</updated>

		<published>2003-05-02T13:33:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19744#p19744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19744#p19744"/>
		<title type="html"><![CDATA[botnick regain tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19744#p19744"><![CDATA[
set keep-nick 1<br>.set nick NICK-YOU-WANT-TO-"STEAL"-HEHE<br><br>this will temporarily change nick. will last until bot is restarted/rehashed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri May 02, 2003 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[THUGNATURE]]></name></author>
		<updated>2003-05-02T12:42:33-04:00</updated>

		<published>2003-05-02T12:42:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19743#p19743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19743#p19743"/>
		<title type="html"><![CDATA[botnick regain tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19743#p19743"><![CDATA[
hi there can someone reccomend me a good botnick regain tcl i have searched the tcl archive and have had no luck in finding anything if you can help me please provide me with a link or a code that regains the botnick thx in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2983">THUGNATURE</a> — Fri May 02, 2003 12:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
