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

	<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>2001-10-05T03:27:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-05T03:27:00-04:00</updated>

		<published>2001-10-05T03:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=292#p292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=292#p292"/>
		<title type="html"><![CDATA[add line :-o]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=292#p292"><![CDATA[
thanx stdragon <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> work great<br><br>Just another litle question <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>if a player type 2 times !play the bot save 2 times his nick :-/ how to ask bot to never add a nick who is already on the file ? <br><br>&lt;font size=-1&gt;[ This Message was edited by: agoni on 2001-10-05 01:28 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Fri Oct 05, 2001 3:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-10-04T06:29:00-04:00</updated>

		<published>2001-10-04T06:29:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=260#p260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=260#p260"/>
		<title type="html"><![CDATA[add line :-o]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=260#p260"><![CDATA[
It sounds like you want to append to the file. So first of all, open the file in mode "a" instead of "w" (w overwrites it). Then, get rid of your foreach loop, because $nick is only one thing, not a list. So just puts $f $nick, not a loop for it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Oct 04, 2001 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-04T04:41:00-04:00</updated>

		<published>2001-10-04T04:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=257#p257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=257#p257"/>
		<title type="html"><![CDATA[add line :-o]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=257#p257"><![CDATA[
hi! everyone<br><br>i would like to store X nick on a file for a game tcl.<br><br>players use !play to enter the game, and when the X number of players is ok the game start.<br><br>i would like that the bot write a list of players like this<br><br>player1 <br>player2<br>player3<br>etc...<br><br>I tried this but that don't work :-/ the bot don't add line so on the file, there is only the last one who type !play<br><br>proc pub_players {nick uhost hand chan arg} { <br>global players_file<br>set f [open $players_file w]<br>foreach line $nick {<br>puts $f $line<br>close $f<br>}<br>}<br><br>so how to ask the bot to put each player on different lines ?<br>thanx for help ! and sorry for my english :-/<br><br><br><p>Statistics: Posted by Guest — Thu Oct 04, 2001 4:41 am</p><hr />
]]></content>
	</entry>
	</feed>
