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

	<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>2002-06-02T23:58:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-06-02T23:58:00-04:00</updated>

		<published>2002-06-02T23:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7596#p7596</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7596#p7596"/>
		<title type="html"><![CDATA[variable to lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7596#p7596"><![CDATA[
actually, i dunno wtf i was thinking when i wrote that - there is a much simpler solution &gt;&gt;<br><br>set blah [split $instring |]<br>foreach a $blah {putserv "PRIVMSG $chan :$a"}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sun Jun 02, 2002 11:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-02T23:12:00-04:00</updated>

		<published>2002-06-02T23:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7593#p7593</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7593#p7593"/>
		<title type="html"><![CDATA[variable to lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7593#p7593"><![CDATA[
thanks guys<p>Statistics: Posted by Guest — Sun Jun 02, 2002 11:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-06-02T23:06:00-04:00</updated>

		<published>2002-06-02T23:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7592#p7592</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7592#p7592"/>
		<title type="html"><![CDATA[variable to lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7592#p7592"><![CDATA[
thats a very convoluted way of doing it. personally I'd just split it into a list using | as the seperator, and run a for loop through it<br>something like<br>set blah [split $instring |]<br>for {set x 0} {$x == [llength $blah]} {incr x} {<br>putserv "PRIVMSG $chan :[lindex $blah $x]"<br>}<br><br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sun Jun 02, 2002 11:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-02T20:41:00-04:00</updated>

		<published>2002-06-02T20:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7586#p7586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7586#p7586"/>
		<title type="html"><![CDATA[variable to lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7586#p7586"><![CDATA[
Simplest/quickest way I can think of is this:<br><br>set test "some text | some more text | and even more text |"<br>set test [cleanarg $test]<br>set oga ""<br>foreach t $test {<br> if {$t != "|"} {<br>  if {$oga == ""} {<br>   set oga $t<br>  } else {<br>   set oga "$t $oga"<br>  }<br> } else {<br>  putserv "privMSG #somechan :$oga"<br>  set oga ""<br> }<br>}<br>proc cleanarg {arg} {<br> set temp ""<br>for {set i 0} {$i &lt; [string length $arg]} {incr i} {<br>  set char [string index $arg $i]<br>  if {($char != "12") &amp;&amp; ($char != "15")} {<br>   append temp $char<br>  }<br> }<br> set temp [string trimright $temp "}"]<br> set temp [string trimleft $temp "{"]<br>return $temp<br>}<br><br>The cleanup proc seperates each word.<br><br>_________________<br>Searchig<br>One clueless user<br><br>&lt;font size=-1&gt;[ This Message was edited by: Searchig on 2002-06-02 18:42 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sun Jun 02, 2002 8:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-02T20:12:00-04:00</updated>

		<published>2002-06-02T20:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7584#p7584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7584#p7584"/>
		<title type="html"><![CDATA[variable to lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7584#p7584"><![CDATA[
Hi again, more problems <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>set test "some text | some more text | and even more text"<br><br>putserv "PRIVMSG #somechan :$test"<br><br>is it possible to make a new line after every | ?  while thingy or something<p>Statistics: Posted by Guest — Sun Jun 02, 2002 8:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
