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

	<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>2003-05-26T14:56:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-26T14:56:19-04:00</updated>

		<published>2003-05-26T14:56:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20724#p20724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20724#p20724"/>
		<title type="html"><![CDATA[Website grap text script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20724#p20724"><![CDATA[
The string tims probably do stuff you don't expect them to. Check the manual for details <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><a href="http://tcl.tk/man/tcl8.4/TclCmd/string.htm#M46" class="postlink">http://tcl.tk/man/tcl8.4/TclCmd/string.htm#M46</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 26, 2003 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-26T11:27:30-04:00</updated>

		<published>2003-05-26T11:27:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20702#p20702</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20702#p20702"/>
		<title type="html"><![CDATA[Website grap text script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20702#p20702"><![CDATA[
oh thanks my bad did'nt notice that the first line was empty!<p>Statistics: Posted by Guest — Mon May 26, 2003 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-05-26T10:58:38-04:00</updated>

		<published>2003-05-26T10:58:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20700#p20700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20700#p20700"/>
		<title type="html"><![CDATA[Website grap text script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20700#p20700"><![CDATA[
first of, I would use the http package provided by tcl, dunno if it's better but it's easier to work with <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> ....in my opinion <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>now to your problem, you are opening the file(url) for reading, which is correct, but then you use gets, this will take <span style="text-decoration:underline">one</span> line of the file and puts that in topic, now if you check the source of that file you will notice that first line of the source is empty <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>so what you need to do is to add a while loop in your code, something like this:<div class="codebox"><p>Code: </p><pre><code>set ccdrift_url "http://www.cstv.dk/ccdrift/index.php" bind pub - !ccdrift ccdrift_topic proc ccdrift_topic {nick host hand chan args} {      global ccdrift_url      set file [open "|lynx -source $ccdrift_url" r]     while {![eof $file]} {          gets $file html          if {$html == {}} {continue}          set html [string trimleft $html "&lt;h1&gt;"]          set html [string trimright $html "&lt;/h1&gt;"]     }      putserv "TOPIC $chan :$html"     }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon May 26, 2003 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-26T10:00:54-04:00</updated>

		<published>2003-05-26T10:00:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20698#p20698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20698#p20698"/>
		<title type="html"><![CDATA[Website grap text script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20698#p20698"><![CDATA[
Okey kinda an followup to my earlier post, I have this code<br>and the eggdrop starts fine no error, and no error when the pub command<br>is written... nothing in log what so ever but nothing happens...<br><br><div class="codebox"><p>Code: </p><pre><code>set ccdrift_url "http://www.cstv.dk/ccdrift/index.php"bind pub - !ccdrift ccdrift_topic proc ccdrift_topic {nick host hand chan args} {     global ccdrift_url     set file [open "|lynx -source $ccdrift_url" r]      set html "[gets $file]"           set html "[string trimleft $html "&lt;h1&gt;"]"      set html "[string trimright $html "&lt;/h1&gt;"]"      putserv "TOPIC $chan :$html"   } </code></pre></div>Anyone seeing faults or an reason why nothing happens<br>have tried removing the two string trim<p>Statistics: Posted by Guest — Mon May 26, 2003 10:00 am</p><hr />
]]></content>
	</entry>
	</feed>
