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

	<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-07-02T22:39:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[John_m0wev]]></name></author>
		<updated>2008-07-02T22:38:43-04:00</updated>

		<published>2008-07-02T22:38:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83841#p83841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83841#p83841"/>
		<title type="html"><![CDATA[Re: calling a proc from within a proc - SOLVED]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83841#p83841"><![CDATA[
Thanks Speechless<br>Thats solved it <br><br><br>} i always overlook those <br><br>many thanks, i feel daft now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10028">John_m0wev</a> — Wed Jul 02, 2008 10:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-07-02T10:47:27-04:00</updated>

		<published>2008-07-02T10:47:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83833#p83833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83833#p83833"/>
		<title type="html"><![CDATA[Re: calling  a proc from within a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83833#p83833"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>; # up here is hopefully your bind and procedure header  set sql "SELECT username FROM users WHERE username = '$sgnick' "  putloglev d * "ircstats: executing $sql"  set result [mysqlsel $db_handle $sql ]  if {$result == 1} {     putquick "PRIVMSG #mods-lounge : Check 1  "    disp_mods $sgnick  } else {    putlog "calling ghstcheck proc"    ghst_check $ghostnick  }} ;# this is your missing closing brace, you must close the procedure  proc disp_mods { sgnick } {  # blah blah} ; # again, you forgot to close the procedureproc ghst_check { ghostnick } {  # blah blah} ; # again, you forgot to close the procedure</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jul 02, 2008 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[John_m0wev]]></name></author>
		<updated>2008-07-02T22:39:01-04:00</updated>

		<published>2008-07-02T06:00:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83830#p83830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83830#p83830"/>
		<title type="html"><![CDATA[calling  a proc from within a proc - SOLVED]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83830#p83830"><![CDATA[
When my script starts, it goes into a proc<br>Upon the result of $result being either 1 or 0 it should call another proc<br>it aint <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>can someone put me on the right track.<br><div class="codebox"><p>Code: </p><pre><code>set sql "SELECT username FROM users WHERE username = '$sgnick' "  putloglev d * "ircstats: executing $sql"  set result [mysqlsel $db_handle $sql ]  if {$result == 1} {   putquick "PRIVMSG #mods-lounge : Check 1  "  disp_mods $sgnick  } else { putlog "calling ghstcheck proc"  ghst_check $ghostnick }    proc disp_mods { sgnick } {  blah blah  proc ghst_check { ghostnick } {  blah blah</code></pre></div><br>the error i recieve is this - <br>Tcl error [regcheck]: invalid command name "ghst_check"<br>and<br>Tcl error [regcheck]: invalid command name "disp_mods"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10028">John_m0wev</a> — Wed Jul 02, 2008 6:00 am</p><hr />
]]></content>
	</entry>
	</feed>
