<?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/8086" />

	<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>2004-08-09T17:37:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-09T17:37:53-04:00</updated>

		<published>2004-08-09T17:37:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39650#p39650</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39650#p39650"/>
		<title type="html"><![CDATA[Global variables?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39650#p39650"><![CDATA[
Making a single script support several channels would of course be much better. Less hassle dealing with binds etc. (some binds are not stackable, so the script loaded last would "win")<br>But that doesn't mean using your own namespace is a bad idea. <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=2878">user</a> — Mon Aug 09, 2004 5:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[QKill]]></name></author>
		<updated>2004-08-09T17:35:02-04:00</updated>

		<published>2004-08-09T17:35:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39649#p39649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39649#p39649"/>
		<title type="html"><![CDATA[Global variables?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39649#p39649"><![CDATA[
Ok, thanks!<br><br>The thing is that i want to use the script as a service for several teams on quakenet. So every script should have their own settings, and i want to avoid installing a new eggdrop for every team that will use it.<br><br>Its like the warmanager script, but much more functions.<br><br>So i dunno whats the best. To make a new namespace for each script, or to make it dynamic to support several channels/settings.<br><br>// Peter<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5297">QKill</a> — Mon Aug 09, 2004 5:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-09T17:28:07-04:00</updated>

		<published>2004-08-09T17:28:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39647#p39647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39647#p39647"/>
		<title type="html"><![CDATA[Global variables?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39647#p39647"><![CDATA[
You can load scripts into a different namespace or interpreter if you want to avoid name conflicts, but the scripts will have to be written to handle their new environment.<div class="codebox"><p>Code: </p><pre><code>namespace eval ::demo {  source some.tcl}</code></pre></div>(the code in some.tcl will be evaluated inside the ::demo namespace)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Aug 09, 2004 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[QKill]]></name></author>
		<updated>2004-08-09T17:18:48-04:00</updated>

		<published>2004-08-09T17:18:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39646#p39646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39646#p39646"/>
		<title type="html"><![CDATA[Global variables?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39646#p39646"><![CDATA[
Hi everybody! <br><br>Is variables in a scriptfile isolated from all other scripts or is all variables global? <br><br>If i for exampel load a script multiple times, will the variables overwrite each other? It is is, is there someway to avoid that? <br><br>Thanks! <br><br>// Peter<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5297">QKill</a> — Mon Aug 09, 2004 5:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
