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

	<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-07-24T14:21:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-07-24T14:21:55-04:00</updated>

		<published>2003-07-24T14:21:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23905#p23905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23905#p23905"/>
		<title type="html"><![CDATA[help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23905#p23905"><![CDATA[
<blockquote class="uncited"><div>aslo, I suggest you add some if-checks to see if there is someone by that handle/host already known to the bot</div></blockquote>I thought about that already<br>That's mutch easy<br><br>take a look at it if that will work later<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Thu Jul 24, 2003 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-24T11:21:14-04:00</updated>

		<published>2003-07-24T11:21:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23897#p23897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23897#p23897"/>
		<title type="html"><![CDATA[help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23897#p23897"><![CDATA[
you cannot just add parameters to the proc-input, there is just one $arg<br>then you split that and pull out the different elements you want, in your script it would be something like this:<div class="codebox"><p>Code: </p><pre><code>proc msg:register {nick uhost hand arg} { set user [lindex [split $arg] 0]set pass [lindex [split $arg] 1]adduser $user *!*$uhost chpass $user $pass putlog "\002NEW USER\002 user $user was added to the bot with $uhost" putserv "NOTICE $nick : You're added to tbe bot with handle $user and pass $pass" }</code></pre></div>aslo, I suggest you add some if-checks to see if there is someone by that handle/host already known to the bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jul 24, 2003 11:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-07-24T11:12:38-04:00</updated>

		<published>2003-07-24T11:12:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23896#p23896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23896#p23896"/>
		<title type="html"><![CDATA[help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23896#p23896"><![CDATA[
I writing a script that users can register with the handle they want not the nick the're using.<br><br>the command is /msg &lt;botnick&gt; register &lt;handle&gt; &lt;password&gt;<br><br>The error i get is "Tcl error [msg:register]: no value given for parameter "arg2" to "msg:register"<br><blockquote class="uncited"><div>proc msg:register {nick uhost hand arg1 arg2} {<br>adduser $arg1 *!*$uhost<br>chpass $arg1 $arg2<br>putlog "\002NEW USER\002 user $arg1 was added to the bot with $uhost"<br>putserv "NOTICE $nick : You're added to tbe bot with handle $arg1 and pass $arg2"<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Thu Jul 24, 2003 11:12 am</p><hr />
]]></content>
	</entry>
	</feed>
