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

	<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>2007-06-09T18:44:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-06-09T18:44:34-04:00</updated>

		<published>2007-06-09T18:44:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73373#p73373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73373#p73373"/>
		<title type="html"><![CDATA[bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73373#p73373"><![CDATA[
ahhhh  thank you so much<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sat Jun 09, 2007 6:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-09T18:36:17-04:00</updated>

		<published>2007-06-09T18:36:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73372#p73372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73372#p73372"/>
		<title type="html"><![CDATA[bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73372#p73372"><![CDATA[
Well, the problem is that you open the file (which currently clears it's contents), write one line, close the file, iterate to the next ban, open the file again (clearing it again), and so forth...<br><br>Move the open and close commands outside the loop, and it should work like a charm...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jun 09, 2007 6:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-06-09T17:55:50-04:00</updated>

		<published>2007-06-09T17:55:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73370#p73370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73370#p73370"/>
		<title type="html"><![CDATA[bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73370#p73370"><![CDATA[
Hi, i'm trying to write sticky bans to the file but somehow the following snippet writes just one line. I'll appreciate for your help - thx<br><div class="codebox"><p>Code: </p><pre><code>foreach b [banlist] {     if {[isbansticky [lindex $b 0]]} {        set x [open $::stickylog "w"]        puts $x "[lindex $b 0]"        close $x    }  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sat Jun 09, 2007 5:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
