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

	<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>2008-12-29T08:32:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-29T08:32:14-04:00</updated>

		<published>2008-12-29T08:32:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86579#p86579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86579#p86579"/>
		<title type="html"><![CDATA[Need some help with this join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86579#p86579"><![CDATA[
The problem with using [onchan] here is that the bot won't have the chanlist generated yet when it first joins. So [onchan] will return 0 even if ChanServ is actually in the channel. One solution would be to delay the check for a few seconds...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 29, 2008 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-12-29T06:54:55-04:00</updated>

		<published>2008-12-29T06:54:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86578#p86578</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86578#p86578"/>
		<title type="html"><![CDATA[Need some help with this join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86578#p86578"><![CDATA[
For the {Chanserv JOINS} test, use the code suggested by Sir_Fz.<br><br>For the {ChanServ ison $chan} test, use this:<div class="codebox"><p>Code: </p><pre><code>if {[onchan ChanServ $chan} {</code></pre></div>Further; this will not produce the desired result:<div class="codebox"><p>Code: </p><pre><code>putserv "JOIN $chan"</code></pre></div>This will only cause your eggdrop to join the channel, only to get confused and leave it instantly; use the <strong class="text-strong">channel add</strong> command instead.<br>Same goes for this:<div class="codebox"><p>Code: </p><pre><code>putserv "PART $chan"</code></pre></div>Use <strong class="text-strong">channel remove</strong> instead.<br><br>Finally, your argument-list does not match the kind of binding you're using, msg bindings calls the proc with the following parameters, <em class="text-italics">nick</em> <em class="text-italics">host</em> <em class="text-italics">handle</em> <em class="text-italics">text</em>.<br>It should be something like this:<div class="codebox"><p>Code: </p><pre><code>proc join_proc {nick host handle text} {</code></pre></div>Finally, I don't see chan defined anywhere whithin your proc. Were you thinking of taking whatever is written after ?join as the channel-name?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Dec 29, 2008 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-17T19:39:07-04:00</updated>

		<published>2008-12-17T19:39:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86320#p86320</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86320#p86320"/>
		<title type="html"><![CDATA[Need some help with this join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86320#p86320"><![CDATA[
You want your bot to check if ChanServ is in the channel when the bot joins?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 17, 2008 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JKM]]></name></author>
		<updated>2008-12-17T19:26:21-04:00</updated>

		<published>2008-12-17T19:26:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86319#p86319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86319#p86319"/>
		<title type="html"><![CDATA[Need some help with this join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86319#p86319"><![CDATA[
So..<div class="codebox"><p>Code: </p><pre><code>proc join_proc { nick chan arg }   if {ChanServ ison $chan} {      putquick "PRIVMSG $nick :ChanServ ison chan!"   } else {      putserv "JOIN $chan"   }   if {[string equal -nocase "chanserv" $nick]} {      # $nick is ChanServ      putquick "PRIVMSG $chan :ChanServ joined!"      putserv "PART $chan"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10344">JKM</a> — Wed Dec 17, 2008 7:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-17T16:39:30-04:00</updated>

		<published>2008-12-17T16:39:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86313#p86313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86313#p86313"/>
		<title type="html"><![CDATA[Need some help with this join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86313#p86313"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase "chanserv" $nick]} { # $nick is ChanServ}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 17, 2008 4:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JKM]]></name></author>
		<updated>2008-12-17T12:13:48-04:00</updated>

		<published>2008-12-17T12:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86306#p86306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86306#p86306"/>
		<title type="html"><![CDATA[Need some help with this join script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86306#p86306"><![CDATA[
Hi there,<br>I started on a join script, and was wondering about how I should write the "if {ChanServ JOIN}".<div class="codebox"><p>Code: </p><pre><code>bind msg - ?join join_procproc join_proc { nick chan arg }if {ChanServ ison $chan} {putquick "PRIVMSG $nick :ChanServ ison chan!"} else {putserv "JOIN $chan"}if {ChanServ JOINS} {putquick "PRIVMSG $chan :ChanServ joined!"putserv "PART $chan"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10344">JKM</a> — Wed Dec 17, 2008 12:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
