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

	<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>2011-04-20T13:31:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Seka]]></name></author>
		<updated>2011-04-20T09:42:36-04:00</updated>

		<published>2011-04-20T09:42:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96700#p96700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96700#p96700"/>
		<title type="html"><![CDATA[[SOLVED] Tcl error : wrong # args]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96700#p96700"><![CDATA[
That did it!<br><br>Thanks so much for your help. Looks like everything is working fine, now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11646">Seka</a> — Wed Apr 20, 2011 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-04-19T23:31:12-04:00</updated>

		<published>2011-04-19T23:31:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96698#p96698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96698#p96698"/>
		<title type="html"><![CDATA[Re: Tcl error : wrong # args]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96698#p96698"><![CDATA[
Reference:<br><a href="http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and see:<blockquote class="uncited"><div>PUB<br><br>bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;</div></blockquote>In your script, the bind is a bind pub.<br>The corresponding proc needs to accept five variables passed to it.<br>Yours has only four:<div class="codebox"><p>Code: </p><pre><code>proc pub_wine {nick uhost hand channel} {</code></pre></div>Make it:<div class="codebox"><p>Code: </p><pre><code>proc pub_wine {nick uhost hand channel text}  {</code></pre></div>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Apr 19, 2011 11:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Seka]]></name></author>
		<updated>2011-04-20T13:31:40-04:00</updated>

		<published>2011-04-19T22:33:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96697#p96697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96697#p96697"/>
		<title type="html"><![CDATA[[SOLVED] Tcl error : wrong # args]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96697#p96697"><![CDATA[
I am receiving the following error with most of my commands in this particular script. I'm not sure what the issue is. Any help is appreciated.<div class="codebox"><p>Code: </p><pre><code>Tcl error [pub_wine]: wrong # args: should be "pub_wine nick uhost hand channel"</code></pre></div>Here is the actual proc:<div class="codebox"><p>Code: </p><pre><code>proc pub_wine {nick uhost hand channel} {  global botnick    putserv "PRIVMSG $channel :\001ACTION takes down an elegant glass from the rack above the bar and pours $nick a healthy amount of Vintish red.\001"    return 0}bind pub - !wine pub_wine</code></pre></div>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11646">Seka</a> — Tue Apr 19, 2011 10:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
