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

	<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>2006-08-26T13:25:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-08-26T13:25:35-04:00</updated>

		<published>2006-08-26T13:25:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65855#p65855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65855#p65855"/>
		<title type="html"><![CDATA[Textfile-Output in only one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65855#p65855"><![CDATA[
Thank you. It works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sat Aug 26, 2006 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-26T08:05:13-04:00</updated>

		<published>2006-08-26T08:05:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65843#p65843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65843#p65843"/>
		<title type="html"><![CDATA[Textfile-Output in only one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65843#p65843"><![CDATA[
you could try "read" (reads as much as possible from the file), and then use string map (to change newlines into spaces)<br><div class="codebox"><p>Code: </p><pre><code>proc foo {nick host hand chan text} { set fd [open $::foofile r] set data [read $fd] puthelp "PRIVMSG $chan :[string map {"\n" " " "\r" " "}]" close $fd}</code></pre></div>I think something like that should do the trick...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Aug 26, 2006 8:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-08-26T07:37:45-04:00</updated>

		<published>2006-08-26T07:37:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65842#p65842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65842#p65842"/>
		<title type="html"><![CDATA[Textfile-Output in only one line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65842#p65842"><![CDATA[
Hello!<br>If I want to display everything of a textfile in a channel I use this script.<div class="codebox"><p>Code: </p><pre><code>proc foo {nick uhost hand chan arg} {  set fd [open $::foofile r]      while {![eof $fd]} {        putquick "PRIVMSG $chan :[gets $fd]"       }          close $fd}</code></pre></div>The output looks like this:<blockquote class="uncited"><div>(@Bot) bla<br>(@Bot) blabla<br>(@Bot) blablabla</div></blockquote>But I want that everything is displayed in just one line. So it must look like this:<blockquote class="uncited"><div>(@Bot) bla blabla blablabla</div></blockquote>What do I have to change in my script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sat Aug 26, 2006 7:37 am</p><hr />
]]></content>
	</entry>
	</feed>
