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

	<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>2002-07-14T16:01:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-14T16:01:57-04:00</updated>

		<published>2002-07-14T16:01:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8864#p8864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8864#p8864"/>
		<title type="html"><![CDATA[Rejoin script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8864#p8864"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>putlog "Leaving channels"set chan {}foreach chan [channels] {        channel set $chan +inactive}putlog "Rejoining channels"foreach chan [channels] {        after 2000        channel set $chan -inactive        putlog "Rejoining $chan"}putlog "Rejoin.tcl executed"</code></pre></div>This should rejoin a chan in the list every 2 seconds... however, I noticed that the channel set commands are executed after the script is finished, all after another, so I still have the same problem (the putlogs were in there to see if it worked...)<br><br>anyone has ANY idea how to solve this?<br><br>I also tried this for the second part:<div class="codebox"><p>Code: </p><pre><code>set i 0foreach chan [channels] {        incr i 2000        after $i {        channel set $chan -inactive        putlog "Rejoining $chan"        }}</code></pre></div>But then it tries to join the last chan in the list as many times as there are channels...<p>Statistics: Posted by Guest — Sun Jul 14, 2002 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-13T07:57:48-04:00</updated>

		<published>2002-07-13T07:57:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8837#p8837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8837#p8837"/>
		<title type="html"><![CDATA[Rejoin script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8837#p8837"><![CDATA[
hello all,<br><br>I'd need a script to perform upon connection to a network the following things:<br><br>1. the bot sets all channels +inactive (channel set #name +inactive) but I wouldn't know how to extract the channel names from the channel file (grep?) and loop them (prolly for ... next)<br>2. rejoin all channels (+inactive) with a 2 sec interval (I tried pause, but that didn't work... so I guess a timer is needed or so...)<br><br>any help would be appreciated...<br><br>The pause is essential in the script, so it's not just cycling...<br><br>*MOD* this is what I have allready, after some research:<div class="codebox"><p>Code: </p><pre><code>set chan {}foreach chan {#chan1 #chan2} {        channel set $chan +inactive}after 1500foreach chan {#chan1 #chan2} {        after 1500        channel set $chan -inactive}</code></pre></div>Now I just need a way to extract the channames from the channel file, instead of hard-coding them, and I guess it's possible to store them in one list, so I can replace {#chan1 #chan2} with one variable...?<p>Statistics: Posted by Guest — Sat Jul 13, 2002 7:57 am</p><hr />
]]></content>
	</entry>
	</feed>
