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

	<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>2006-05-20T01:07:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-20T01:07:56-04:00</updated>

		<published>2006-05-20T01:07:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63186#p63186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63186#p63186"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63186#p63186"><![CDATA[
<blockquote class="uncited"><div>About the .tcl thing... maybe you should read the stickings: <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink">http://forum.egghelp.org/viewtopic.php?t=10215</a></div></blockquote>The instructions in the sticky you've cited are exactly what I'd done. To wit: I commented <strong class="text-strong">unbind dcc n tcl *dcc:tcl</strong> and <strong class="text-strong">unbind dcc n set *dcc:set</strong>, saved the file, and restarted the bot. I even did it again to make sure I didn't miss any of these simple steps, but experienced the same result . The result being that neither the <strong class="text-strong">.set</strong> nor the <strong class="text-strong">.tcl</strong> commands do anything except generate the response <strong class="text-strong">What? You need .help</strong>.<br><br>As for my request for correct scripting to resolve the sync issue, it's easy to see that for whatever reason this is a problem without a known solution. I can see that it may help tcl script experts to know exactly what the bot and the IRC server are doing (and not doing) before fashioning a script to remedy a problem. However, I was merely hoping that someone with good tcl experience would know exactly how to make a simple script that would send time-delayed <strong class="text-strong">WHO $chan</strong> requests for each active channel the bot has joined. Apparently it's not as easy as this.<br><br>Thanks anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Sat May 20, 2006 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-05-19T19:58:23-04:00</updated>

		<published>2006-05-19T19:58:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63181#p63181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63181#p63181"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63181#p63181"><![CDATA[
!s = server queue<br>!m = mode queue<br>guess what !h is <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>! is adding for queue, while -&gt; is actually flushing.<br><br>About the .tcl thing... maybe you should read the stickings: <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink">http://forum.egghelp.org/viewtopic.php?t=10215</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri May 19, 2006 7:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-18T10:43:16-04:00</updated>

		<published>2006-05-18T10:43:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63150#p63150</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63150#p63150"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63150#p63150"><![CDATA[
One other observation from the raw data: Each <strong class="text-strong">WHO #channel</strong> sent automatically after connect is prefixed with <strong class="text-strong">[!m]</strong>... whereas when I manually issue <strong class="text-strong">.dump who #channel</strong> (which is always successful) the log shows my request  prefixed with <strong class="text-strong">[!s]</strong>. Also, the 2 successful automatic WHO requests upon connect are prefixed with <strong class="text-strong">[m=&gt;]</strong> with no channel indicated after this. But the correct sync data is returned for both respective channels in response to each <strong class="text-strong">[m=&gt;] WHO</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Thu May 18, 2006 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-18T10:18:39-04:00</updated>

		<published>2006-05-18T10:18:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63149#p63149</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63149#p63149"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63149#p63149"><![CDATA[
<blockquote class="uncited"><div>does a manual ".tcl resetchan #chan" solve current issues? Please check also raw logging of your bot.</div></blockquote>Thanks for the response.<br><br><strong class="text-strong">.tcl resetchan #chan</strong> renders a <strong class="text-strong">What?  You need '.help'</strong>, despite that <strong class="text-strong">unbind dcc n tcl *dcc:tcl</strong> is commented out in the conf file. I'm not sure why it doesn't work; I probably failed to set some other directive properly.<br><br>I checked raw log activity occurrence after issuing <strong class="text-strong">.jump</strong> (note: the psyBNC IP:port is the only server in the bot's server list). What I found is that raw 352 only appears for 2 channels out of my 8. This seems consistent with the failed sync matter in that these 2 channels are the ones that usually always sync properly, whereas the other 6 never seem to sync upon connect. Raw 353 returns for all 8 channels though. Would other information from the output be helpful? If I post the raw log data here I'll have to first do a search &amp; replace for certain items. But please let me know if it would be helpful and I'll do it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Thu May 18, 2006 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-05-18T06:00:55-04:00</updated>

		<published>2006-05-18T06:00:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63141#p63141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63141#p63141"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63141#p63141"><![CDATA[
does a manual ".tcl resetchan #chan" solve current issues? Please check also raw logging of your bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu May 18, 2006 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-18T13:45:36-04:00</updated>

		<published>2006-05-17T12:32:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63127#p63127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63127#p63127"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63127#p63127"><![CDATA[
Greetings scripting gurus,<br><br>I still haven't found a solution to my egg/psy issue <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">    I've tried a few things with the code that De Kus so kindly provided. I tried removing this part completely:<br><div class="codebox"><p>Code: </p><pre><code>[matchattr chanserv "|l" $chan] &amp;&amp;</code></pre></div>which unfortunately made no difference.<br><br>I then added it back and tried changing the <strong class="text-strong">chanserv</strong> to a handle that actually exists and is in the bot's user record and is connected to the IRC network. That didn't work either. In case you're wondering, I always confirm the script changes and rehash after each test mod is added. But these changes <span style="text-decoration:underline">never</span> cause the channels showing 'pending' status to sync. The channels always return in the same state, either after a server change by the eggdrop or a disconnect/reconnect from the IRC server by psyBNC.<br><br>I DID have a bit of luck with simple <strong class="text-strong">server JOIN</strong> script lines in psyBNC, but loading the ones that work results in zombied processes on the shell. I'd really like to be able to somehow do a timed resync of all of my channels with a tcl running on the eggdrop. If there were only a script that would duplicate the effect of an on-connect and periodic <strong class="text-strong">.dump WHO #channel</strong> for each channel that the bot auto-joins, it would make things so much nicer. I've searched this forum and others as well as the web for an answer with no luck.<br><br>Does anyone have further ideas?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Wed May 17, 2006 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-15T13:28:20-04:00</updated>

		<published>2006-05-15T13:28:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63060#p63060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63060#p63060"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63060#p63060"><![CDATA[
<blockquote class="uncited"><div>you might not have a user named "chanserv", delete the matchattr in that case. It simply resets one channel each 5 secs every 1h and on rejoin of a netsplit. I made this not because I use psybnc, but because of masked hosts from hostserv which need nickserv auth <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.</div></blockquote>Hmm, I took out the 'matchattr chanserv' part and it loads fine but doesn't seem to be working. The bot is in 8 channels and all but 2 are showing "(pending)" status. That's the same kind of result I had before calling this script into play. Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Mon May 15, 2006 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-15T10:43:35-04:00</updated>

		<published>2006-05-15T10:43:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63053#p63053</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63053#p63053"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63053#p63053"><![CDATA[
<blockquote class="uncited"><div>well, actually the bot already sends a WHO request on each join. All you can use is used some kind of timed WHO.<br><br>I myself found it usefull to use this script:<br><div class="codebox"><p>Code: </p><pre><code>blah</code></pre></div>you might not have a user named "chanserv", delete the matchattr in that case. It simply resets one channel each 5 secs every 1h and on rejoin of a netsplit. I made this not because I use psybnc, but because of masked hosts from hostserv which need nickserv auth <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.</div></blockquote>Thanks. I'll give it a try  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Mon May 15, 2006 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-05-15T10:29:26-04:00</updated>

		<published>2006-05-15T10:29:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63051#p63051</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63051#p63051"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63051#p63051"><![CDATA[
well, actually the bot already sends a WHO request on each join. All you can use is used some kind of timed WHO.<br><br>I myself found it usefull to use this script:<br><div class="codebox"><p>Code: </p><pre><code>bind rejn - "*" resync:sbind time - "59 *" resync:tproc resync:s {nick uhost hand chan} {if {[matchattr chanserv "|l" $chan] &amp;&amp; ![info exists ::resync($chan)] || !$::resync($chan)} {set ::resync($chan) 1utimer 30 [list resync:reset $chan]}return 0}proc resync:t {min h d m y} {set timer 5foreach chan [channels] {if { ![info exists ::resync($chan)] || !$::resync($chan) } {set ::resync($chan) 1utimer $timer [list resync:reset $chan]incr timer 5}}return 0}proc resync:reset {chan} {resetchan $chanset ::resync($chan) 0return 0}</code></pre></div>you might not have a user named "chanserv", delete the matchattr in that case. It simply resets one channel each 5 secs every 1h and on rejoin of a netsplit. I made this not because I use psybnc, but because of masked hosts from hostserv which need nickserv auth <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon May 15, 2006 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-15T09:57:26-04:00</updated>

		<published>2006-05-15T09:57:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63049#p63049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63049#p63049"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63049#p63049"><![CDATA[
<blockquote class="uncited"><div>If you can run psybnc 24/7 then why not an eggdrop?</div></blockquote>Because it's a relay bot running locally and linked to other relay bots running on the same box. There is less lag of the relay echos that way.<br><br>Can you help with a script that will achieve the automatic WHO operations for my channels?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Mon May 15, 2006 9:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-05-15T08:23:03-04:00</updated>

		<published>2006-05-15T08:23:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63045#p63045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63045#p63045"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63045#p63045"><![CDATA[
If you can run psybnc 24/7 then why not an eggdrop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon May 15, 2006 8:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3rdBAR]]></name></author>
		<updated>2006-05-15T07:03:45-04:00</updated>

		<published>2006-05-15T07:03:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63034#p63034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63034#p63034"/>
		<title type="html"><![CDATA[script to auto-send WHO for channel sync after join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63034#p63034"><![CDATA[
I have a need for my bot to issue WHO &lt;channel name&gt; for each channel it joins upon connection. The bot is running through psyBNC and it often loses sync on a few channels after reconnecting. Whenever I issue .dump who #channel it always resyncs for the given channel. I'd like to make this automatic if possible.<br><br>I've searched the tcl archives as well as this forum for a small script that will do this but have not been able to find one. If someone can provide such a script I'd be gateful.<br><br>TIA<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7757">3rdBAR</a> — Mon May 15, 2006 7:03 am</p><hr />
]]></content>
	</entry>
	</feed>
