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

	<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>2005-02-11T14:12:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-11T14:12:10-04:00</updated>

		<published>2005-02-11T14:12:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46531#p46531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46531#p46531"/>
		<title type="html"><![CDATA[(re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46531#p46531"><![CDATA[
Haha, rehash... I could do this myself, but in case of debugging I have to reload my script often 10 times a row and always waiting 10sec till bot it rehashed is simply boring. So users uplevel solution is the best. Please only post, if you know a better solution than "source" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">.<br>for security... if someone hacks my dcc password, there is no worry about loading an extra script over dcc, since he cannot upload to /script without a trojaner on my machine <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. there you be no way to load from another path, because "script/*.tcl" is predefined, is there? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I havent tested, if a containing [] would be executed, but I think it wouldnt, would it? but... even it would... when he has +n on partyline with my account he already has access to .tcl anyway... its useless to think about it <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=2382">De Kus</a> — Fri Feb 11, 2005 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-11T12:29:11-04:00</updated>

		<published>2005-02-11T12:29:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46528#p46528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46528#p46528"/>
		<title type="html"><![CDATA[(re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46528#p46528"><![CDATA[
<blockquote class="uncited"><div>As for the 'uplevel' thingy, for me lets stay we'll stick to the simple method at the moment. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>what method is that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 11, 2005 12:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-11T12:21:42-04:00</updated>

		<published>2005-02-11T12:21:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46527#p46527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46527#p46527"/>
		<title type="html"><![CDATA[(re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46527#p46527"><![CDATA[
Sometimes the bot laggs on the shell and there can be various problems so using a small delayed utimer was my idea.<br><br>As for the 'uplevel' thingy, for me lets stay we'll stick to the simple method at the moment. <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=4875">awyeah</a> — Fri Feb 11, 2005 12:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-11T11:07:41-04:00</updated>

		<published>2005-02-11T11:07:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46524#p46524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46524#p46524"/>
		<title type="html"><![CDATA[(re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46524#p46524"><![CDATA[
<blockquote class="uncited"><div>bla bla bla<br>utimer 2 rehash</div></blockquote>'open file a' would make sure you're at the end...but adding a new 'source filename' every time you want to REload a script is not a good idea and detecting if the file is already added to the conf can be hard as it could be sourced in many ways. And why wait 2 seconds to rehash? Just rehash after you've closed the file.<blockquote class="uncited"><div>hmm, ah thats how its meant to be used. ic, thx. this way the global var prob should be solved.</div></blockquote><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_idea.gif" width="15" height="15" alt=":idea:" title="Idea"> A even better method would be to replace "uplevel #0" with "*dcc:tcl &lt;handle&gt; &lt;idx&gt;" - that way it will also honor your must-be-owner setting.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 11, 2005 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-11T09:20:53-04:00</updated>

		<published>2005-02-11T09:20:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46519#p46519</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46519#p46519"/>
		<title type="html"><![CDATA[(re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46519#p46519"><![CDATA[
I would suggest another thing by opening the .conf file going to the end and writing:<br><br>source scripts/$text.tcl<br><br>You will have to search for the last line in this case and then in the next "/n" empty line write down so that it loads. In this will always make it stay there untill you remove it.<br><br>Then make your proc execute a rehash:<br><br>utimer 2 rehash<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Feb 11, 2005 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-11T05:22:16-04:00</updated>

		<published>2005-02-11T05:22:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46516#p46516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46516#p46516"/>
		<title type="html"><![CDATA[Re: (re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46516#p46516"><![CDATA[
Things that are overwritten in the interpreter cease to exist<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 11, 2005 5:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-10T21:28:49-04:00</updated>

		<published>2005-02-10T21:28:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46515#p46515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46515#p46515"/>
		<title type="html"><![CDATA[Re: (re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46515#p46515"><![CDATA[
<blockquote class="uncited"><div>uplevel #0 <ul></ul></div></blockquote>hmm, ah thats how its meant to be used. ic, thx. this way the global var prob should be solved.<br>does someone know if the code will be double in memory, or will the procs be replaced not only in function but also in memory?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Feb 10, 2005 9:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-10T19:34:27-04:00</updated>

		<published>2005-02-10T19:34:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46509#p46509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46509#p46509"/>
		<title type="html"><![CDATA[Re: (re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46509#p46509"><![CDATA[
uplevel #0 <ul></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Feb 10, 2005 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-10T19:00:51-04:00</updated>

		<published>2005-02-10T19:00:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46504#p46504</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46504#p46504"/>
		<title type="html"><![CDATA[(re)loading single tcl files]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46504#p46504"><![CDATA[
Beware, if you have any faith, dont read the script. This script is very very old... but it worked almost perfect all the time <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><div class="codebox"><p>Code: </p><pre><code>########## .loactcl#bind dcc n loadtcl loadtclproc loadtcl {hand idx args} {  source scripts/$args.tcl  return 1}</code></pre></div>I know, this is really really ugly. I dont even know, if I load the memory till ultimo, but however it loads the procs and overwrites the old one. The only real flaw is, that variables used outside of a proc are not considered as global. I thought about using utimer to execute "source" globally, but I wonder if there isnt a more suitable command for that purpose? I couldnt find something in the tcl command list myself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Feb 10, 2005 7:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
