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

	<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>2007-06-11T13:17:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bootdisk]]></name></author>
		<updated>2007-06-11T12:29:20-04:00</updated>

		<published>2007-06-11T12:29:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73427#p73427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73427#p73427"/>
		<title type="html"><![CDATA[Dunno how i should solve this :S [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73427#p73427"><![CDATA[
Thanks for the help mnl <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>The script is working now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Now i have to find some other script that i can use for fun <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanks mate!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9054">bootdisk</a> — Mon Jun 11, 2007 12:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-11T12:17:49-04:00</updated>

		<published>2007-06-11T12:17:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73426#p73426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73426#p73426"/>
		<title type="html"><![CDATA[Dunno how i should solve this :S [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73426#p73426"><![CDATA[
Ah well, we're all beginners at sometime.<br><br>Your current issue is that this:<div class="codebox"><p>Code: </p><pre><code>proc request:dojoin { channel nickname hostname handle text } {</code></pre></div>does not match the list of parameters provided when the msg-binding triggers (being: "nickname user@host handle text"). What you need todo is modify the list of arguments (channel nickname hostname handle text) to match these. Names of the arguments does not matter (with the exception of "args"), however the number of parameters and arguments must match (one parameter per argument.<br><br>Change the above mentioned line into something like this:<div class="codebox"><p>Code: </p><pre><code>proc request:dojoin {nickname uhost handle text} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jun 11, 2007 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bootdisk]]></name></author>
		<updated>2007-06-11T12:11:47-04:00</updated>

		<published>2007-06-11T12:11:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73425#p73425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73425#p73425"/>
		<title type="html"><![CDATA[Dunno how i should solve this :S [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73425#p73425"><![CDATA[
Uhm, sorry but i dont get it :/<br><br>First time im looking at TCL or code, but what i do know (or i guess) is that this script should be faster with botnet binds/procs rather then msg?<br><br>Maybe you can give me a hint on the that i should use in the main script?<br><br>Edit: Thanks for answer my post <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9054">bootdisk</a> — Mon Jun 11, 2007 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-11T11:55:11-04:00</updated>

		<published>2007-06-11T11:55:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73424#p73424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73424#p73424"/>
		<title type="html"><![CDATA[Dunno how i should solve this :S [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73424#p73424"><![CDATA[
Your argument-list in request:dojoin is not in order.<blockquote class="uncited"><div>    (1)  MSG<br>         bind msg &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt;<br><br>         Description: used for /msg commands. The first word of the user's<br>           msg is the command, and everything else becomes the text argument.<br>         Module: server</div></blockquote>Hence the argumentlist should be something like "nickname uhost handle text".<br><br>As for sending messages through the botnet, you would use putbot to send the message, and create a binding of type "BOT" to recieve the message. Adopting your current script should be a mere matter of replacing the line sending the msg to leafbot, with putbot (message could be the same); and changing the binding and arguments for request:dojoin to use a BOT-binding rather than a MSG-binding.<br><blockquote class="uncited"><div>  putbot &lt;bot-nick&gt; &lt;message&gt;<br>    Description: sends a message across the botnet to another bot. If no<br>      script intercepts the message on the other end, the message is<br>      ignored.<br>    Returns: nothing<br>    Module: core<br><br>...<br><br>    (18) BOT<br>         bind bot &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         proc-name &lt;from-bot&gt; &lt;command&gt; &lt;text&gt;<br><br>         Description: triggered by a message coming from another bot in<br>           the botnet. The first word is the command and the rest becomes<br>           the text argument; flags are ignored.<br>         Module: core</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jun 11, 2007 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bootdisk]]></name></author>
		<updated>2007-06-11T13:17:00-04:00</updated>

		<published>2007-06-11T11:07:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73421#p73421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73421#p73421"/>
		<title type="html"><![CDATA[Dunno how i should solve this :S [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73421#p73421"><![CDATA[
Ok, i have some problem with a request script that i found on this forum.<br><br>The script is basic request from metroid and "modified" by Tosser^^.<br><br>I have talked to both of them about this, mostly metroid.<br><br>I can post the part of the request script that Tosser^^  modified first and then say what my problem is.<br><div class="codebox"><p>Code: </p><pre><code># Basic Request script  # Request is accepted  putquick "NOTICE $nickname :Your request is accepted. $bot will join $channel."  putquick "PRIVMSG $request::homechan :Request from $nickname for $channel was accepted. The channel has [llength [chanlist $channel]] users."  putbot "$bot :rjoin $channel $nickname *![getchanhost $nickname]"  channel remove $channel }}proc request::version {} { putlog "Basic Request script version: $request::version by $request::author was loaded successfully."}   request::version</code></pre></div>Thats the script that is loaded on the main bot.<br><br>Here is the leaf script<br><div class="codebox"><p>Code: </p><pre><code>bind msg H| rjoin request:dojoinproc request:dojoin { channel nickname hostname handle text } { set channel [lindex [split $text] 0] set nick [lindex [split $text] 1] set host [lindex [split $text] 2] if {![validuser [nick2hand $nick]]} {   channel add $channel   adduser $nick $host   chattr $nick |+n $channel  } else {   chattr [nick2hand $nick] |+n $channel } putserv "NOTICE $nick :Hello $nick. Im your new bot. Your added to my userlist as '[nick2hand $nick]' with the hostname '$host'. Enjoy!"}</code></pre></div><br>So, my problem is that the leaf script. It wont join the channel.<br><br>And in the partyline on the leaf bot i get this<div class="codebox"><p>Code: </p><pre><code>Tcl error [request:dojoin]: no such channel</code></pre></div>So im wondering if this leaf script can be rewriten so the main bot sends a command trough the botnet insteed of privmsg?<br><br>And if i use putbot on the mainbot to call the leaf-bot, how should i bind the the stuff in the leaf script?<br><br><br>Best Regards<br>bootdisk<br><br>PS. Dont know if im just guessing now, but maybe im on the right way? :S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9054">bootdisk</a> — Mon Jun 11, 2007 11:07 am</p><hr />
]]></content>
	</entry>
	</feed>
