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

	<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-12-31T21:59:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pipo]]></name></author>
		<updated>2006-12-31T21:59:32-04:00</updated>

		<published>2006-12-31T21:59:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69387#p69387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69387#p69387"/>
		<title type="html"><![CDATA[put lindex1 and lindex2 together?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69387#p69387"><![CDATA[
Happy New Year!!<br><br>For announcing some output of the sitebot to a second channel I  use:<br>(example if a NEW release is send)<br><div class="codebox"><p>Code: </p><pre><code>    set one [lindex $nam 0] if {[string equal NEW $one]} {  putserv "PRIVMSG #channel1 :$announce"} else {  putserv "PRIVMSG #channel2 :$announce"}</code></pre></div>The problem is it wil announce, in channel1: New upload, New sample, New cover etc.<br>But I only want the "new upload" to be announce in channel1.<br><br>So I need to use the first and second lindex of $nam:<br>    set one [lindex $nam 0]<br>    set two [lindex $nam 1]<br><br>But then I dont know how to use it, so it wil announce lindex equal NEW ($one) UPLOAD ($two) to channel1.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8399">pipo</a> — Sun Dec 31, 2006 9:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
