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

	<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-08-28T18:06:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T18:06:16-04:00</updated>

		<published>2002-08-28T18:06:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10168#p10168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10168#p10168"/>
		<title type="html"><![CDATA[Multiline element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10168#p10168"><![CDATA[
His way is better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Wed Aug 28, 2002 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-28T17:17:42-04:00</updated>

		<published>2002-08-28T17:17:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10149#p10149</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10149#p10149"/>
		<title type="html"><![CDATA[Multiline element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10149#p10149"><![CDATA[
Other methods are to use multi-dimentional lists (AKA lists within lists).<br><div class="codebox"><p>Code: </p><pre><code>set quote {{{This is item 0 in list 0} {this is item 1 in list 0}}{{This is item 0 in list 1} {this is item 1 in list 1}}}</code></pre></div>Somthing like this will spit a random quote.<br><div class="codebox"><p>Code: </p><pre><code>foreach a [lindex $quote [expr [rand [llength $quote]] -1]] {  puthelp "PRIVMSG #channel :$a"}</code></pre></div>If the random value is 1, the following is spat out<blockquote class="uncited"><div>PRIVMSG #channel :This is item 0 in list 0<br>PRIVMSG #channel :this is item 1 in list 0</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Aug 28, 2002 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T14:57:25-04:00</updated>

		<published>2002-08-28T14:57:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10140#p10140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10140#p10140"/>
		<title type="html"><![CDATA[Multiline element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10140#p10140"><![CDATA[
Thanks a lot!!!<br><br>I will give it a try!!<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by Guest — Wed Aug 28, 2002 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T10:38:01-04:00</updated>

		<published>2002-08-28T10:38:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10120#p10120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10120#p10120"/>
		<title type="html"><![CDATA[Multiline element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10120#p10120"><![CDATA[
The newline char is \n. therefore your code needs to be<br><div class="codebox"><p>Code: </p><pre><code>set quote { "\"I never forget a face\nbut in your case I'll make an exception (Groucho Marx)\"" }</code></pre></div>The only problem is, if this is being spat out on IRC then you'll be missing the "PRIVMSG #chan whatever"<br><br>so you prolly need:<br><div class="codebox"><p>Code: </p><pre><code>set quote { "\"I never forget a face\nPRIVMSG #chan :but in your case I'll make an exception (Groucho Marx)\"" }</code></pre></div>if it is used in multiple channels then you're probably screwed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Wed Aug 28, 2002 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T10:32:40-04:00</updated>

		<published>2002-08-28T10:32:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10119#p10119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10119#p10119"/>
		<title type="html"><![CDATA[Multiline element in array]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10119#p10119"><![CDATA[
Hi all!!!<br><br>Anybody know how can I use a multiline element in an array of strings?<br><br>Sample:<br><div class="codebox"><p>Code: </p><pre><code>set quote {"\"I never forget a face, but in your case I'll make an exception (Groucho Marx)\"" }</code></pre></div>And  I want that the quote is presented in 2 separate lines on the channel:<br><em class="text-italics">I never forget a face,<br>but in your case I'll make an exception (Groucho Marx)</em><br><br>Can I define some NewLine char  or something like this? I don't want to use two elements of the array becouse i'm using a Quote script that only works with one element at a time.<br><br>Thanks in advance, and excuse my poor english.<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by Guest — Wed Aug 28, 2002 10:32 am</p><hr />
]]></content>
	</entry>
	</feed>
