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

	<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-03-23T21:17:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[evotech]]></name></author>
		<updated>2011-03-23T21:17:52-04:00</updated>

		<published>2011-03-23T21:17:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96528#p96528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96528#p96528"/>
		<title type="html"><![CDATA[on join bind help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96528#p96528"><![CDATA[
cool! <br><br>idk if i even need the text paramenter, ill try just taking it out first<br>edit: without it the public call doesnt work so i used the second option and it works great <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>But yeah, many thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11556">evotech</a> — Wed Mar 23, 2011 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-03-23T14:01:09-04:00</updated>

		<published>2011-03-23T14:01:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96523#p96523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96523#p96523"/>
		<title type="html"><![CDATA[on join bind help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96523#p96523"><![CDATA[
<blockquote class="uncited"><div>bind join &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; </div></blockquote>the join procedure expects 4 arguments while you have 5. You can trick it by replacing:<div class="codebox"><p>Code: </p><pre><code>proc cmd:stream { nick uhost handle chan text } {</code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>proc cmd:stream {nick uhost handle chan {text ""}} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Mar 23, 2011 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-03-23T13:59:19-04:00</updated>

		<published>2011-03-23T13:59:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96522#p96522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96522#p96522"/>
		<title type="html"><![CDATA[on join bind help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96522#p96522"><![CDATA[
The bind is just fine, "*" is a wide enough mask to match pretty much anyone joining the channel. However, the argument list of cmd:stream does not match the required parameters of the join binding; it only passes on 4 (nickname, user@host, handle, and channel) while your cmd:stream proc has 5, as you already use it with pub bindings.<br><br>There are two fixes for this;<br>1. use a different proc for your join binding<div class="codebox"><p>Code: </p><pre><code>bind join - * join:streamproc join:stream {nick host handle channel} {  catch {exec cat /home/evotech/eggdrop/scripts/urls | perl /home/evotech/eggdrop/scripts/streams.pl} streams  putnotc $nick $streams}</code></pre></div>2. Make the last argument (text) optional by assigning it a default value:<div class="codebox"><p>Code: </p><pre><code>bind join - * cmd:streamproc cmd:stream {nick uhost handle chan {text ""}} {  catch {exec cat /home/evotech/eggdrop/scripts/urls | perl /home/evotech/eggdrop/scripts/streams.pl} streams  putnotc $nick "$streams"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Mar 23, 2011 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trixar_za]]></name></author>
		<updated>2011-03-23T10:39:06-04:00</updated>

		<published>2011-03-23T10:39:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96520#p96520</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96520#p96520"/>
		<title type="html"><![CDATA[on join bind help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96520#p96520"><![CDATA[
Try<div class="codebox"><p>Code: </p><pre><code>bind join - "#* *!*@*" cmd:stream</code></pre></div>What your missing is the channel and user mask part of the bind.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10958">Trixar_za</a> — Wed Mar 23, 2011 10:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[evotech]]></name></author>
		<updated>2011-03-23T10:12:34-04:00</updated>

		<published>2011-03-23T10:12:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96519#p96519</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96519#p96519"/>
		<title type="html"><![CDATA[on join bind help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96519#p96519"><![CDATA[
Hi, trying to get this script to work and send a notice on join. as far as i can tell it's according to the documentation.<div class="codebox"><p>Code: </p><pre><code>bind pub - .streams cmd:streambind pub - !test cmd:testbind pub - !whoburnedthehousedownbind join - * cmd:streamproc cmd:stream { nick uhost handle chan text } {   catch { exec cat /home/evotech/eggdrop/scripts/urls | perl /home/evotech/eggdrop/scripts/streams.pl } streams   putnotc $nick "$streams"}</code></pre></div>It works if called, but not on join, whats wrong with the 'bind join - * cmd:stream' line?<br><br>Probably something minor <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11556">evotech</a> — Wed Mar 23, 2011 10:12 am</p><hr />
]]></content>
	</entry>
	</feed>
