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

	<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>2004-01-16T19:21:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-01-16T19:21:47-04:00</updated>

		<published>2004-01-16T19:21:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32589#p32589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32589#p32589"/>
		<title type="html"><![CDATA[Splitting some strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32589#p32589"><![CDATA[
Well here's a start for you..<br><div class="codebox"><p>Code: </p><pre><code># http stuff goes hereregsub -all "&lt;br&gt;" $data "\n" dataset lines [split $data "\n"]foreach line $lines {  putserv "privmsg #sheep :$line"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Jan 16, 2004 7:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-01-15T16:50:15-04:00</updated>

		<published>2004-01-15T16:50:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32546#p32546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32546#p32546"/>
		<title type="html"><![CDATA[Splitting some strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32546#p32546"><![CDATA[
can't make it work  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Thu Jan 15, 2004 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-15T11:38:30-04:00</updated>

		<published>2004-01-15T11:38:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32536#p32536</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32536#p32536"/>
		<title type="html"><![CDATA[Splitting some strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32536#p32536"><![CDATA[
Get the "package require http" outside the proc and try to [split $data \n]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jan 15, 2004 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-01-15T11:22:24-04:00</updated>

		<published>2004-01-15T11:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32535#p32535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32535#p32535"/>
		<title type="html"><![CDATA[Splitting some strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32535#p32535"><![CDATA[
I have the following code:<br><div class="codebox"><p>Code: </p><pre><code>proc where {nick host hand chan text} { package require http  set token [http::config -useragent "Mozilla 4.0"]  set temp [http::geturl $url]  set data [http::data $temp].............</code></pre></div>The result is this: {Pinkeltje} moc_fild17.gat 103 313 &lt;br&gt;{Shinji} prt_fild08.gat 127 308 &lt;br&gt;{Dwedarina} moc_fild04.gat 205 331 &lt;br&gt;{Nevermind} pay_fild01.gat 66 257 &lt;br&gt;{Valentino} prontera.gat 155 214 &lt;br&gt;<br><br>As you can see, there are 5 users with data and I want to split the entire string so that the output is like this:<br><br>{Pinkeltje} moc_fild17.gat 103 313 <br>{Shinji} prt_fild08.gat 127 308 <br>{Dwedarina} moc_fild04.gat 205 331<br>{Nevermind} pay_fild01.gat 66 257<br>{Valentino} prontera.gat 155 214<br><br>So I want to display all 5 lines to the user with the following:<br><div class="codebox"><p>Code: </p><pre><code>foreach line $data {putquick "PRIVMSG $chan :$data" }</code></pre></div>Or something like that....can somebody help me?<br><br>thx.<br>Chrizz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Thu Jan 15, 2004 11:22 am</p><hr />
]]></content>
	</entry>
	</feed>
