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

	<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>2003-08-22T11:09:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-22T09:12:15-04:00</updated>

		<published>2003-08-22T09:12:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25465#p25465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25465#p25465"/>
		<title type="html"><![CDATA[auth script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25465#p25465"><![CDATA[
ok thanx again User <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>much appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Aug 22, 2003 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-08-22T11:09:59-04:00</updated>

		<published>2003-08-22T07:44:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25463#p25463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25463#p25463"/>
		<title type="html"><![CDATA[auth script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25463#p25463"><![CDATA[
<blockquote class="uncited"><div>[snip]<br>also I suggest replacing <strong class="text-strong">args</strong> with <strong class="text-strong">arg</strong> (in the proc), because args has a special meaning in TCL (I don't know what it is :p)</div></blockquote>If the number of arguments when calling a procedure is variable, one can use the keywords "args". This will be a list with thearguments:<br><div class="codebox"><p>Code: </p><pre><code>proc variableargument { args } {   puts "CALL with [llength $args] arguments"   set argcount 0   foreach argument $args {      incr argcount      puts "ARG $argcount: $argument"   }}# call proc with 0 argumentsvariableargument# call proc with 1 argumentvariableargument hello# call proc with 2 argumentsvariableargument hello world</code></pre></div>results in<br><blockquote class="uncited"><div>CALL with 0 arguments<br>CALL with 1 arguments<br>ARG 1: hello<br>CALL with 2 arguments<br>ARG 1: hello<br>ARG 2: world</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Aug 22, 2003 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-22T07:23:28-04:00</updated>

		<published>2003-08-22T07:23:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25461#p25461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25461#p25461"/>
		<title type="html"><![CDATA[auth script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25461#p25461"><![CDATA[
Why don't you try it before you ask ?<br><br>also I suggest replacing <strong class="text-strong">args</strong> with <strong class="text-strong">arg</strong> (in the proc), because args has a special meaning in TCL (I don't know what it is :p)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Aug 22, 2003 7:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-08-22T06:56:38-04:00</updated>

		<published>2003-08-22T06:56:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25460#p25460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25460#p25460"/>
		<title type="html"><![CDATA[auth script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25460#p25460"><![CDATA[
Hi <br><br>I have this little script which auth's to X chan services bot when I msg it to do so, but I'd like it to do it itself when it connects... <br><br>bind msg m|m auth auth <br><br>proc auth {nick host hand args} { <br>putserv "NOTICE $nick : I have authed to X" <br>putserv "PRIVMSG X :authop #NewsRoom BotNick password" <br>return 0 <br>} <br><br>putlog "Auth loaded" <br><br>can this be done with this script? <br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Aug 22, 2003 6:56 am</p><hr />
]]></content>
	</entry>
	</feed>
