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

	<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>2017-04-24T23:18:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2017-04-22T05:25:36-04:00</updated>

		<published>2017-04-22T05:25:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106173#p106173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106173#p106173"/>
		<title type="html"><![CDATA[[RESOLVED] How to call a proc within a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106173#p106173"><![CDATA[
caesar and willyw:<br><br>This is an issue i'm having with a prior post: <a href="http://forum.egghelp.org/viewtopic.php?t=20324" class="postlink">http://forum.egghelp.org/viewtopic.php?t=20324</a><br><br>This is a game script. The user calls the game with !word<br><br>If no one guess the puzzle, the game ends.<br><br>If the puzzle is guessed, the game also ends.<br><br>I have the code in that post. I want to be able to automatically call the proc pub_word after either of the above two events happen, rather than have the user continuously keep starting a game by using the !word. That's what they all want. But I cant make ti happen at all.<br><br>Any help wld be greatly appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12386">Landslyde</a> — Sat Apr 22, 2017 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2017-04-22T03:29:33-04:00</updated>

		<published>2017-04-22T03:29:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106172#p106172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106172#p106172"/>
		<title type="html"><![CDATA[Re: How to call a proc within a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106172#p106172"><![CDATA[
"is not working"<br>It would help if you would show us the error message that you are seeing in the partyline.<br><br>In the meantime, I suspect that it will have to do with the wrong number or arguments.<br><br>Think of the proc that you have named "one" as that you have created a new tcl command, named "one".   You can call it and use it.   However, by the design of it, "one" wants to be passed five command line arguments.<br><br>In proc two, you will have to re-think that - so that you have something to pass to "one" when you call it.  <br>You can hard code it, if that will fit your needs.<br><br>In proc three, it looks like the usage would be:<br>one $nick $uhost $handle $chan $text<br><br>(I agree with caesar.   args is special.  I don't even use "arg", even though that is not special.... it just looks close to the human eye. )<br><br>Big note !  :<br>With the very limited sample code we are working with here - aren't we creating an infinite loop?    Have another look, and think about it.<br><br>I hope I have not misled you - I just woke up and am not firing on all cylinders yet.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 22, 2017 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-04-22T03:11:38-04:00</updated>

		<published>2017-04-22T03:11:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106171#p106171</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106171#p106171"/>
		<title type="html"><![CDATA[[RESOLVED] How to call a proc within a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106171#p106171"><![CDATA[
First off avoid using args as it has a special meaning.<br><br>If the functions (proc) aren't binded or called anywhere outside another function (proc) I don't see how this would work.<br><br>Basically add <em class="text-italics">one</em> at the end of the code you got to call it when the tcl file is executed (read).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Apr 22, 2017 3:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2017-04-24T23:18:39-04:00</updated>

		<published>2017-04-22T00:52:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106169#p106169</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106169#p106169"/>
		<title type="html"><![CDATA[[RESOLVED] How to call a proc within a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106169#p106169"><![CDATA[
I have three procs. <br><div class="codebox"><p>Code: </p><pre><code>proc one {nick uhost handle channel args} {     some code}proc two {} {     some code    one}proc three {nick uhost handle channel args} {     some code    one}</code></pre></div>I want to recall proc one after proc two and proc three run their course. The way I have it  (without the inner code of the procs shown here) is not working. What's the right way to do this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12386">Landslyde</a> — Sat Apr 22, 2017 12:52 am</p><hr />
]]></content>
	</entry>
	</feed>
