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

	<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>2005-05-10T10:15:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-05-10T10:15:28-04:00</updated>

		<published>2005-05-10T10:15:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49310#p49310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49310#p49310"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49310#p49310"><![CDATA[
<blockquote class="uncited"><div>missing close-brace: possible unbalanced brace in comment</div></blockquote>Most likely you have a commented line (one of those with a # in front <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> ) somewhere else in the script, that you didnt paste here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue May 10, 2005 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-10T04:33:30-04:00</updated>

		<published>2005-05-10T04:33:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49302#p49302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49302#p49302"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49302#p49302"><![CDATA[
you are missing a close bracet at the end of the proc, and your switch expression will most like cause this:<br>tcl: evaluate (.tcl): switch -- hello {case "hello" {return 2}}<br>Tcl error: extra switch pattern with no body<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue May 10, 2005 4:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-10T04:05:32-04:00</updated>

		<published>2005-05-10T04:05:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49301#p49301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49301#p49301"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49301#p49301"><![CDATA[
Try changing <strong class="text-strong">$arg</strong> to <strong class="text-strong">[split $arg]</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 10, 2005 4:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daltonc]]></name></author>
		<updated>2005-05-09T21:29:49-04:00</updated>

		<published>2005-05-09T21:29:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49298#p49298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49298#p49298"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49298#p49298"><![CDATA[
Yea, I got it working, I just chaned user to user_account .. <br><br>Now this is saying:<br><br>missing close-brace: possible unbalanced brace in comment<br><div class="codebox"><p>Code: </p><pre><code>proc command:lookup {nick uhost hand chan arg} {if {[isop $nick $chan]} {   set command [lindex $arg 0]   switch -- $command {      case "chaninfo" {         set chan_name [lindex $arg 1]         putnotc $nick "Looking up channel information for [lindex $arg 1]"         set get_chaninfo [mysql_query "SELECT * FROM bot_channels WHERE chan_name='$chan_name'"]         if {[info exist get_chaninfo]} {            foreach chan_info $get_chaninfo {               set channel_bot [lindex $chan_info 3]               set channel_trigger [lindex $chan_info 4]               set channel_greeting [lindex $chan_info 5]               set channel_owner_host [lindex $chan_info 2]               set channel_id [lindex $chan_info 0]         }         set get_chanowner [mysql_query "SELECT * FROM bot_users WHERE user_host='$channel_owner_host'"]         foreach owner_info $get_chanowner {            set channel_owner_account [lindex $owner_info 1]         }         putnotc $nick "[lindex $arg 1] Information"         putnotc $nick "Bot: $channel_bot"         putnotc $nick "Trigger: $channel_trigger"         putnotc $nick "Greeting: $channel_greeting"         putnotc $nick "Owner: $channel_owner_account"         putnotc $nick "ID# $channel_id"        } else {           putnotc $nick "There is not database entry for [lindex $arg 1]"         }      }   } else {      putnotc $nick "Error(1): You lack access to use botnet commands"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6153">daltonc</a> — Mon May 09, 2005 9:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2005-05-09T18:08:52-04:00</updated>

		<published>2005-05-09T18:08:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49296#p49296</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49296#p49296"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49296#p49296"><![CDATA[
Maybe it's an argument to your proc? What De Kus said is really the only way this error could be happening.. you already have a variable called user and it's not an array.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon May 09, 2005 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daltonc]]></name></author>
		<updated>2005-05-09T15:35:20-04:00</updated>

		<published>2005-05-09T15:35:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49267#p49267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49267#p49267"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49267#p49267"><![CDATA[
mmmm, nope. That little piece of code isnt in a proc. Its like an on startup event. Its not working though <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> 'dalton' is in my database as a name. Its saying cant set user(dalton): variable isnt array. <br><br>As this is an on start event it is the first time I Set the variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6153">daltonc</a> — Mon May 09, 2005 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-09T03:45:51-04:00</updated>

		<published>2005-05-09T03:45:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49245#p49245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49245#p49245"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49245#p49245"><![CDATA[
you probably initialized the var like 'set user ""' or something like that, but you musn't. you can use 'set user() ""', but however it redudant. each element needs to be initialized to not cause an error, so you need to check 'info exists user(element)' anyway, if you want to read and not sure about the existens.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon May 09, 2005 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Galadhrim]]></name></author>
		<updated>2005-05-09T02:57:56-04:00</updated>

		<published>2005-05-09T02:57:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49241#p49241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49241#p49241"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49241#p49241"><![CDATA[
seems you are trying to append/prepend array entries to a non-array variable. I dont recognize this syntax: <em class="text-italics">set user($user_name)</em> I'm no TCL wizkid but if that doesn't mean anythng you have your bug <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2999">Galadhrim</a> — Mon May 09, 2005 2:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daltonc]]></name></author>
		<updated>2005-05-08T21:49:57-04:00</updated>

		<published>2005-05-08T21:49:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49236#p49236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49236#p49236"/>
		<title type="html"><![CDATA[Some help on arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49236#p49236"><![CDATA[
how come this isnt working? Its saying.. can't set "user(blah)": variable isn't array<br><div class="codebox"><p>Code: </p><pre><code>set get_users [mysql_query "SELECT * FROM bot_users"] foreach user_info $get_users {   set user_name [lindex $user_info 2]   set user($user_name) [lindex $user_info 3]   set user_email($user_name) [lindex $user_info 4] }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6153">daltonc</a> — Sun May 08, 2005 9:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
