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

	<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-11-15T00:57:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FTL25]]></name></author>
		<updated>2005-11-15T00:57:12-04:00</updated>

		<published>2005-11-15T00:57:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57429#p57429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57429#p57429"/>
		<title type="html"><![CDATA[Simple, but yet an error!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57429#p57429"><![CDATA[
From _SunMar_ 's tut @ SUNiNET:<br><blockquote class="uncited"><div>The syntax of the proc command is proc &lt;name&gt; { &lt;parameters&gt; } { &lt;body&gt; }. <br><br>The &lt;parameters&gt; are the variables the procedure must put its received parameters in. <br><br>You need to specify a variable for each parameter here that will be sent to the procedure. All the variables you give have to be seperated by spaces. <br><br>...<br><br>There is one exception to this rule though. If you call the last variable of &lt;parameters&gt; "args" than you may call upon the procedure with more parameters than you have defined in &lt;parameters&gt;. <br><br>In this case all of the parameters you give to the procedure up from the point where the argument "args" start is put in $args. They are put into $args as if the list command was used to make $args. </div></blockquote>Maybe that will help...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6979">FTL25</a> — Tue Nov 15, 2005 12:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2005-11-14T19:30:30-04:00</updated>

		<published>2005-11-14T19:30:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57412#p57412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57412#p57412"/>
		<title type="html"><![CDATA[Simple, but yet an error!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57412#p57412"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msg n kick trap_msgproc trap_msg {nick uhost hand text args} {  set where [lindex $text 0]  set whom [lindex $text 1]  if {[onchan $whom $where]} {    putquick "KICK $where $whom :Requested"  } else {    putquick "NOTICE $nick: \002$whom\002 zit niet in \002$where\002"  }}</code></pre></div>Well this works, but can anyone explain we how to use the args and when?<br>Example above: {nick uhost hand text args}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Mon Nov 14, 2005 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[T-Xorcist]]></name></author>
		<updated>2005-11-14T18:50:55-04:00</updated>

		<published>2005-11-14T18:50:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57410#p57410</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57410#p57410"/>
		<title type="html"><![CDATA[Simple, but yet an error!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57410#p57410"><![CDATA[
When I enter the following code:<br><div class="codebox"><p>Code: </p><pre><code>bind msg n kick trap_msgproc trap_msg {nick uhost hand text} {  set whom [lindex $text 0]  set where [lindex $text 1]  if {[onchan $whom $where]} {    putquick "KICK $where $whom :Requested"  } else {    putquick "NOTICE $nick: \002$whom\002 zit niet in \002$where\002"  }}</code></pre></div>it will give this error in my log file:<div class="codebox"><p>Code: </p><pre><code>Tcl error [trap_msg]: wrong # args: should be "trap_msg nick uhost hand text"</code></pre></div>What am I doing wrong and could someone give me more information howto know what and when you need sertain args?<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6980">T-Xorcist</a> — Mon Nov 14, 2005 6:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
