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

	<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-07-21T15:52:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-07-21T15:52:01-04:00</updated>

		<published>2008-07-21T15:52:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84105#p84105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84105#p84105"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84105#p84105"><![CDATA[
<blockquote class="uncited"><div>mmm cant understand why of your answer. I'm new to TCL programming so i dont really know the "best" way to program a script right now i made a solution using times as you said before.<br><div class="codebox"><p>Code: </p><pre><code>set infochan {"#testing" "#testing1"}setudef flag sendinfoset timerID [utimer 15 setchanflag]proc setchanflag {} {global timerID infochan       foreach tchan $infochan {               putlog "infochan - Setting flag for $tchan"               channel set $tchan +sendinfo       }}</code></pre></div>right now next expansion would be getting chanlist from a file and using some other command from chat to add channames to that filelist and automate everything.<br><br>thanks for your time</div></blockquote>you realize, the timer doesn't need to call that script.<div class="codebox"><p>Code: </p><pre><code>set timerID1 [utimer 15 [list channel set #testing +sendinfo]]set timerID2 [utimer 15 [list channel set #testing2 +sendinfo]]</code></pre></div>The script itself should do the 'set udef' part. You do not need to do this again if the script is already loaded. You should be doing this all using the partyline and learning how to control eggdrop via it's normal methods, not scripting clumsy work arounds.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Jul 21, 2008 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x-treem]]></name></author>
		<updated>2008-07-21T15:23:35-04:00</updated>

		<published>2008-07-21T15:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84104#p84104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84104#p84104"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84104#p84104"><![CDATA[
mmm cant understand why of your answer. I'm new to TCL programming so i dont really know the "best" way to program a script right now i made a solution using times as you said before.<br><div class="codebox"><p>Code: </p><pre><code>set infochan {"#testing" "#testing1"}setudef flag sendinfoset timerID [utimer 15 setchanflag]proc setchanflag {} {global timerID infochan       foreach tchan $infochan {               putlog "infochan - Setting flag for $tchan"               channel set $tchan +sendinfo       }}</code></pre></div>right now next expansion would be getting chanlist from a file and using some other command from chat to add channames to that filelist and automate everything.<br><br>thanks for your time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10064">x-treem</a> — Mon Jul 21, 2008 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-07-21T14:24:02-04:00</updated>

		<published>2008-07-21T14:24:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84099#p84099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84099#p84099"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84099#p84099"><![CDATA[
<blockquote class="uncited"><div>because i wanted to make the script "handly" to change adding a list of channels with that flag in just one line to have the script run also for that chan as needed instead of having to write it 10thousand times in the party line .chanset #chan1 blah blah .chanset #chan2 blah blah etc</div></blockquote>Wait, I'm not following.. <blockquote class="uncited"><div>.chanset * +sendinfo</div></blockquote>That turns it on for every single channel your bot is in.<blockquote class="uncited"><div>.chanset #thischan -sendinfo</div></blockquote>That turns it off, for that single channel. Which if you used * above, will allow you to remove a few channels you don't want enabled. This is what you should be doing or remove that check entirely since you always want the script to work...<br><br>And what exactly is "handly"? A surname? A malapropism of "handy"? A foreign language term not immediately recognizable?<br><br>You mean you load the same script, except, multiple times with embedded chanset commands to activate each for each different channel? OMG.. wow, that is too much work my man. You are drowning your bot in redundant data (aka, slowing it down). Talk about doing things backwards. You have just defined that statement.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Jul 21, 2008 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x-treem]]></name></author>
		<updated>2008-07-21T14:21:31-04:00</updated>

		<published>2008-07-21T14:21:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84098#p84098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84098#p84098"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84098#p84098"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>channel set #infochan +sendinfo </code></pre></div>Get rid of that in the script, and instead put that line @ the end (after the source scripts section) of your eggdrop.conf and it'll work. But a person has to ask, why can't you simply .chanset #infochan +sendinfo on the partyline once that script is running? As that is the purpose of .chanset, to allow dynamic channel control while the script is running, without a need to .rehash or .restart ...</div></blockquote>i tryed, now the end of my eggdrop.conf looks like<div class="codebox"><p>Code: </p><pre><code># uncomment (remove # in front of line) next line to activate# source scripts/winident1.2.tclsource scripts/infochan.tclchannel set #testing +sendinfo</code></pre></div>but it still doesnt work. channel get #testing addpre is always returning 0<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10064">x-treem</a> — Mon Jul 21, 2008 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x-treem]]></name></author>
		<updated>2008-07-21T13:55:01-04:00</updated>

		<published>2008-07-21T13:55:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84097#p84097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84097#p84097"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84097#p84097"><![CDATA[
because i wanted to make the script "handly" to change adding a list of channels with that flag in just one line to have the script run also for that chan as needed instead of having to write it 10thousand times in the party line .chanset #chan1 blah blah .chanset #chan2 blah blah etc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10064">x-treem</a> — Mon Jul 21, 2008 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-07-21T13:35:32-04:00</updated>

		<published>2008-07-21T13:35:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84096#p84096</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84096#p84096"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84096#p84096"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>channel set #infochan +sendinfo </code></pre></div>Get rid of that in the script, and instead put that line @ the end (after the source scripts section) of your eggdrop.conf and it'll work. But a person has to ask, why can't you simply .chanset #infochan +sendinfo on the partyline once that script is running? As that is the purpose of .chanset, to allow dynamic channel control while the script is running, without a need to .rehash or .restart ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Jul 21, 2008 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-21T12:36:55-04:00</updated>

		<published>2008-07-21T12:36:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84095#p84095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84095#p84095"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84095#p84095"><![CDATA[
Yes and no...<br>This is due to the channels-file feature in eggdrops.<br>Basically, it is an automatically generated tcl-script containing dynamic settings for all added channels, which is executed at the end of eggdrop's startup-cycle. Unfortunately, this means it will be executed after all scripts have been loaded, and will overrule any settings you specify in your script.<br><br>A workaround may be to use timer/utimer to delay the setting until everything has been loaded. Another option would be to not use the channels-file, with the drawback that any changes to channel-settings during runtime will be lost upon the next restart/rehash.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jul 21, 2008 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x-treem]]></name></author>
		<updated>2008-07-21T11:21:46-04:00</updated>

		<published>2008-07-21T11:21:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84093#p84093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84093#p84093"/>
		<title type="html"><![CDATA[setudef and channel set problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84093#p84093"><![CDATA[
hi, i'm tryign to make it work but i'm not able to get it. I have a script <br><div class="codebox"><p>Code: </p><pre><code>bind pub * !info sendinfosetudef flag sendinfochannel set #infochan +sendinfoproc info {nick uhost hand chan arg} {if {[channel get $chan sendinfo]} {....} else {return}</code></pre></div>but it's never triggering the if. [channel get $chan sendinfo] is always 0.<br>if i give a .chanset #infochan +sendinfo from the party line instead, it works....<br>is there a way to make it work with channel set?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10064">x-treem</a> — Mon Jul 21, 2008 11:21 am</p><hr />
]]></content>
	</entry>
	</feed>
