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

	<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-07-25T08:20:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-07-25T08:20:29-04:00</updated>

		<published>2005-07-25T08:20:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53209#p53209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53209#p53209"/>
		<title type="html"><![CDATA[problem with a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53209#p53209"><![CDATA[
<blockquote class="uncited"><div>It's ok,<br><br>but if the egg connection is stopped, it erases the data.<br>How to make to have this information same if the egg connection is stopped??<br><br>Thanks</div></blockquote>dump it in a file, instead of using an array<br><div class="codebox"><p>Code: </p><pre><code>if {![catch {open mylogfile.txt a+} af]} {  puts $af $variable  close $af}</code></pre></div>or do both, and load it back into an array when you loading the bot..<br><div class="codebox"><p>Code: </p><pre><code>if {![catch {open mylogfile.txt r} rf]} {  foreach {x} [split [read $rf] \n] {    #here set the array  }  close $rf}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Jul 25, 2005 8:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ranny]]></name></author>
		<updated>2005-07-25T04:56:09-04:00</updated>

		<published>2005-07-25T04:56:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53198#p53198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53198#p53198"/>
		<title type="html"><![CDATA[problem with a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53198#p53198"><![CDATA[
It's ok,<br><br>but if the egg connection is stopped, it erases the data.<br>How to make to have this information same if the egg connection is stopped??<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6386">ranny</a> — Mon Jul 25, 2005 4:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ranny]]></name></author>
		<updated>2005-07-23T12:42:20-04:00</updated>

		<published>2005-07-23T12:42:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53084#p53084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53084#p53084"/>
		<title type="html"><![CDATA[problem with a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53084#p53084"><![CDATA[
Thanks all,<br><br>it's ok<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6386">ranny</a> — Sat Jul 23, 2005 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-07-23T12:14:04-04:00</updated>

		<published>2005-07-23T12:14:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53082#p53082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53082#p53082"/>
		<title type="html"><![CDATA[problem with a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53082#p53082"><![CDATA[
Because you always write it after the proc is done?<br><div class="codebox"><p>Code: </p><pre><code>#If the variable countinside($nick) does NOT exist, we create it.if ![info exists countinside($nick)] {set countinside($nick)  [expr $total]putserv "privmsg $channel :  $countinside($nick)"return 0}# This will pm the channel with somethingputserv "privmsg $channel : [expr $total - $countinside($nick)] news"# THEN you write it again, and that's why you write it anyway.set countinside($nick) [expr $total]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Jul 23, 2005 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ranny]]></name></author>
		<updated>2005-07-23T03:58:16-04:00</updated>

		<published>2005-07-23T03:58:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53066#p53066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53066#p53066"/>
		<title type="html"><![CDATA[problem with a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53066#p53066"><![CDATA[
Hello,<br><br>I have this script <div class="codebox"><p>Code: </p><pre><code>if ![info exists countinside($nick)] {set countinside($nick)  [expr $total] putserv "privmsg $channel :  $countinside($nick)"return 0}putserv "privmsg $channel : [expr $total - $countinside($nick)] news"set countinside($nick) [expr $total] </code></pre></div>But the egg always writes $countinside($nick) ??<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6386">ranny</a> — Sat Jul 23, 2005 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-22T17:50:48-04:00</updated>

		<published>2005-07-22T17:50:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53048#p53048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53048#p53048"/>
		<title type="html"><![CDATA[problem with a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53048#p53048"><![CDATA[
bind to JOIN, keeping track of joining users, i.e. increment a counter<br><br>also, save that counter, associated with joining user's nick; thus you'll be able to show the difference between current and saved counters (i.e. the number of users joined since then)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Jul 22, 2005 5:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ranny]]></name></author>
		<updated>2005-07-22T17:35:12-04:00</updated>

		<published>2005-07-22T17:35:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53044#p53044</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53044#p53044"/>
		<title type="html"><![CDATA[problem with a variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53044#p53044"><![CDATA[
Hello,<br><br>The first time that one user returns on a chan, the egg writes the number of people who are returns on this chan ==&gt;  it'ok. I will want that the second time that it returns the egg writes the number of people who came since her last visit. <br><br>If you could guide me,<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6386">ranny</a> — Fri Jul 22, 2005 5:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
