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

	<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>2008-08-15T08:13:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-08-15T08:13:31-04:00</updated>

		<published>2008-08-15T08:13:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84610#p84610</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84610#p84610"/>
		<title type="html"><![CDATA[[HELP] IF ELSE with Vars {{Solved}}]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84610#p84610"><![CDATA[
Awesome, thank you very much!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Fri Aug 15, 2008 8:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-08-15T08:04:16-04:00</updated>

		<published>2008-08-15T08:04:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84609#p84609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84609#p84609"/>
		<title type="html"><![CDATA[Re: [HELP] IF ELSE with Vars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84609#p84609"><![CDATA[
<blockquote class="uncited"><div>The script will only set +v on me no matter what.<br>I want:<br>if there is no nick provided, set +v on $nick, but if there is a nick provides, set +v on said nick.<br><br><div class="codebox"><p>Code: </p><pre><code>proc Voice { nick host hand chan text } { set User [lindex [split $text] 1]if {$User == ""} {pushmode $chan +v $nick} else {pushmode $chan +v $User}}</code></pre></div></div></blockquote>Your problem is quite simple. <div class="codebox"><p>Code: </p><pre><code>set User [lindex [split $text] 1]</code></pre></div>This is your problem. Change the 1 to a 0 and you will be fine. 0 is the first index position of $text. 1 would be the 2nd, which of course is always == ""<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Aug 15, 2008 8:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-08-15T08:13:51-04:00</updated>

		<published>2008-08-15T07:26:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84606#p84606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84606#p84606"/>
		<title type="html"><![CDATA[[HELP] IF ELSE with Vars {{Solved}}]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84606#p84606"><![CDATA[
The script will only set +v on me no matter what.<br>I want:<br>if there is no nick provided, set +v on $nick, but if there is a nick provides, set +v on said nick.<br><br><div class="codebox"><p>Code: </p><pre><code>proc Voice { nick host hand chan text } { set User [lindex [split $text] 1]if {$User == ""} {pushmode $chan +v $nick} else {pushmode $chan +v $User}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Fri Aug 15, 2008 7:26 am</p><hr />
]]></content>
	</entry>
	</feed>
