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

	<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-01-11T23:04:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-01-11T23:04:00-04:00</updated>

		<published>2002-01-11T23:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3729#p3729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3729#p3729"/>
		<title type="html"><![CDATA[Problem with variables ($nick , $arg)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3729#p3729"><![CDATA[
Yes it does.<br><br>doing<blockquote class="uncited"><div>[subst[lindex</div></blockquote>whatever lindex returns, gets appended to "subst", thus making it think the command doesn't exist.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jan 11, 2002 11:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-11T17:38:00-04:00</updated>

		<published>2002-01-11T17:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3721#p3721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3721#p3721"/>
		<title type="html"><![CDATA[Problem with variables ($nick , $arg)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3721#p3721"><![CDATA[
didn't know a space would make that difference!<br>thanx! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Fri Jan 11, 2002 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-01-10T19:12:00-04:00</updated>

		<published>2002-01-10T19:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3688#p3688</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3688#p3688"/>
		<title type="html"><![CDATA[Problem with variables ($nick , $arg)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3688#p3688"><![CDATA[
You are failing to place a space between "[subst" and the  "[lindex" command.<br><br>EG<blockquote class="uncited"><div>subst[lindex</div></blockquote>when it should be<blockquote class="uncited"><div>[subst [lindex</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 10, 2002 7:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-10T18:20:00-04:00</updated>

		<published>2002-01-10T18:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3687#p3687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3687#p3687"/>
		<title type="html"><![CDATA[Problem with variables ($nick , $arg)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3687#p3687"><![CDATA[
It still doesn't work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><br>now I get the following error:<br><br>TCL error (pub_mast): invalid command name "substAfter some hugging, $nick kisses $arg"<br><br><br><p>Statistics: Posted by Guest — Thu Jan 10, 2002 6:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-01-10T16:19:00-04:00</updated>

		<published>2002-01-10T16:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3684#p3684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3684#p3684"/>
		<title type="html"><![CDATA[Problem with variables ($nick , $arg)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3684#p3684"><![CDATA[
putchan $chan "[subst [lindex [blah.... ]]]"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Thu Jan 10, 2002 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-10T11:04:00-04:00</updated>

		<published>2002-01-10T11:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3670#p3670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3670#p3670"/>
		<title type="html"><![CDATA[Problem with variables ($nick , $arg)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3670#p3670"><![CDATA[
Hi!<br>I made a little script (see below) where you kan !kiss somebody in the channel. The only problem is, that the "$nick" and "$arg" variables are not be converted to the nickname and the arguments. For example:<br>&lt;testbot&gt; $arg gets a kiss from $nick<br>that should be:<br>&lt;testbot&gt; personB gets a kiss from personA (in which "personA" is the person who gave the command and "personB" is the argument given)<br>How can I do that??<br><br>btw: i replaced the "[" and "]" by "(" and ")" to prevent forum error<br><div class="codebox"><p>Code: </p><pre><code>set rankiss {"$nick blows $arg a kiss! :smile:""$arg gets a kiss from $nick""After some hugging, $nick kisses $arg"}proc pub_kiss {nick uhost hand chan $rankiss} {  global rankissset lengthstr { rand (length $rankiss) }    putchan $chan "[lindex $rankiss (rand (llength $rankiss)))"    return 1}bind pub - !kiss pub_kiss</code></pre></div>&lt;font size=-1&gt;[ This Message was edited by: Mentolboy on 2002-01-10 08:05 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Thu Jan 10, 2002 11:04 am</p><hr />
]]></content>
	</entry>
	</feed>
