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

	<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>2009-08-22T10:57:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-08-22T10:57:51-04:00</updated>

		<published>2009-08-22T10:57:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90018#p90018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90018#p90018"/>
		<title type="html"><![CDATA[On Part not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90018#p90018"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># report.tcl# set here the channel the bot reports joins/parts toset vReportChan #eggtclbind JOIN - * pReportJoinbind RAW - PART pReportPartproc pReportJoin {nick uhost hand chan} {    global vReportChan    if {[botonchan $vReportChan]} {        putserv "PRIVMSG $vReportChan :\002\00303$nick joined $chan\003\002"    }    return 0}proc pReportPart {from keyword text} {    global vReportChan    if {[botonchan $vReportChan]} {      set nick [lindex [split $from !] 0]      set chan [string trim [lindex [split $text :] 0]]      putserv "PRIVMSG $vReportChan :\002\00304$nick parted $chan\003\002"    }    return 0}putlog "report.tcl loaded"# eof</code></pre></div>The above script has been tested and works using a RAW bind with keyword PART instead of a PART bind. As already stated, NOT for quits, splits, kicks etc.<br><br>I have still not got to the bottom of the PART bind. I have a Windrop 1.6.19 for which the PART bind does not trigger for the bot itself parting and I have an Eggdrop 1.6.19+ctcpfix for which the PART bind does trigger. The mind boggles!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sat Aug 22, 2009 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-08-19T18:00:11-04:00</updated>

		<published>2009-08-19T18:00:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89979#p89979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89979#p89979"/>
		<title type="html"><![CDATA[On Part not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89979#p89979"><![CDATA[
Another note on the subject.<br><br>A PART bind does NOT seem to trigger if the bot parts, unlike a JOIN bind which does trigger if the bot joins. This was news to me until I just experimented on another script I am coding.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Wed Aug 19, 2009 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-08-18T20:33:27-04:00</updated>

		<published>2009-08-18T20:33:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89966#p89966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89966#p89966"/>
		<title type="html"><![CDATA[On Part not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89966#p89966"><![CDATA[
I see nothing else wrong.<br><br>Don't forget that a PART bind triggers only for users leaving a channel and not for those quitting (SIGN bind) or those split from your server (SPLT bind).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Aug 18, 2009 8:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[everythingdaniel]]></name></author>
		<updated>2009-08-18T19:56:38-04:00</updated>

		<published>2009-08-18T19:56:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89964#p89964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89964#p89964"/>
		<title type="html"><![CDATA[On Part not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89964#p89964"><![CDATA[
Thanks for the reply! But the PART part still does not work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10819">everythingdaniel</a> — Tue Aug 18, 2009 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-08-18T18:48:10-04:00</updated>

		<published>2009-08-18T18:48:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89963#p89963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89963#p89963"/>
		<title type="html"><![CDATA[On Part not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89963#p89963"><![CDATA[
A part bind passes 5 arguments to the proc it calls. You only had 4. Always check the syntax in tcl-commands.html before you use a bind that you are unfamiliar with. It is also always a good idea to keep track of what's going on in the partyline while a new script is being executed, I'm pretty sure you would have seen an error telling you what was wrong.<br><div class="codebox"><p>Code: </p><pre><code>bind JOIN - * joinr bind PART - * partr proc joinr {jnick jhost jhandle jchannel} {       putserv "PRIVMSG #AR_Staff :\002\00303$jnick joined $jchannel"  } proc partr {pnick phost phandle pchannel pmsg} {       putserv "PRIVMSG #AR_Staff :\002\00304$pnick left $pchannel"  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Aug 18, 2009 6:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[everythingdaniel]]></name></author>
		<updated>2009-08-18T18:40:20-04:00</updated>

		<published>2009-08-18T18:40:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89962#p89962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89962#p89962"/>
		<title type="html"><![CDATA[On Part not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89962#p89962"><![CDATA[
Hi, I have the below code that posts if a user leaves or joins a channel. The only problem is that it works fine on a join, but on a part it does nothing. Any ideas?<br><br><div class="codebox"><p>Code: </p><pre><code>bind JOIN - * joinrbind PART - * partrproc joinr {jnick jhost jhandle jchannel} {       putserv "PRIVMSG #AR_Staff :\002\00303$jnick joined $jchannel"  }proc partr {pnick phost phandle pchannel} {       putserv "PRIVMSG #AR_Staff :\002\00304$pnick left $pchannel"  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10819">everythingdaniel</a> — Tue Aug 18, 2009 6:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
