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

	<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>2001-11-25T21:19:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-25T21:19:00-04:00</updated>

		<published>2001-11-25T21:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2045#p2045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2045#p2045"/>
		<title type="html"><![CDATA[any one know....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2045#p2045"><![CDATA[
Firstly, there is a missing } in thecode.<br><br>It looks like a problem with using strings with lists commands.<br><blockquote class="uncited"><div>foreach word [lrange $line 1 end] {</div></blockquote>This is not needed, a simple<blockquote class="uncited"><div>set temp [lrange $line 1 end]</div></blockquote>will do exactly the same thing.<br><br>You use split to split each line of input from the exec, but you don't split the $line var into a list, so lindex can be used on it.<br><br>while changing the problem above, you could simply change the line<blockquote class="uncited"><div>set temp ""</div></blockquote>to<blockquote class="uncited"><div>set line [split $line]</div></blockquote>Note, you should not use args in your proc argument definitions. args has a special use in Tcl, arg, rest, test, to name a few are more suitible values.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Nov 25, 2001 9:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-25T20:00:00-04:00</updated>

		<published>2001-11-25T20:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2043#p2043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2043#p2043"/>
		<title type="html"><![CDATA[any one know....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2043#p2043"><![CDATA[
<br> ....how to resolve this ?<br><br> TCL error [searchfor]: wrong # args: should be "lindex list index"<br><br>code<br><br>bind pub -|- !search searchfor<br><br>proc searchfor {nick uhost hand chan args} {<br> foreach line [split [exec /home/diktatorn/bots/orbitmp3/search.sh [lindex $args 0] [lindex $args 1] [lindex $args 2] [lindex $args 3]<br>[lindex $args 4] [lindex $args 5] [lindex $args 6]] n] {<br>   set temp ""<br>   if {[string match "??/??/????" [lindex $line 0]]} { foreach word [lrange $line 1 end] { set temp "$temp $word" }<br>                                                       putserv "PRIVMSG $nick :0314[030315[lindex $line 0]030314]03<br>0316-03$temp"<br>                                              } else {putserv "PRIVMSG $nick :0310$line03"}<br>  }<br><br><br>end of code<br><br><br>//orbit <p>Statistics: Posted by Guest — Sun Nov 25, 2001 8:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
