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

	<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>2010-09-11T17:29:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kenh83]]></name></author>
		<updated>2010-09-11T17:29:35-04:00</updated>

		<published>2010-09-11T17:29:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94348#p94348</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94348#p94348"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94348#p94348"><![CDATA[
Incredible! I am still learning a lot and haven't gotten to the "loops" yet<br><br>I really appreciate you guiding me with this nml375.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11350">kenh83</a> — Sat Sep 11, 2010 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-09-11T13:22:43-04:00</updated>

		<published>2010-09-11T13:22:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94337#p94337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94337#p94337"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94337#p94337"><![CDATA[
Something along these lines:<div class="codebox"><p>Code: </p><pre><code>...foreach channel [channels] {  if {[channel get $channel relaycommand]} {    #This channel is set +relaycommand, so do something here...    puthelp "PRIVMSG $channel :Woobie!"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Sep 11, 2010 1:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kenh83]]></name></author>
		<updated>2010-09-11T12:42:51-04:00</updated>

		<published>2010-09-11T12:42:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94334#p94334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94334#p94334"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94334#p94334"><![CDATA[
nml, i'm confused as to what you mean by loop through all the channels..<br><br><br>Could you kindly share an example?<br><br>I've dropped using 'args' in all of my scripts. Thanks for the tip!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11350">kenh83</a> — Sat Sep 11, 2010 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-09-11T11:01:34-04:00</updated>

		<published>2010-09-11T11:01:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94329#p94329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94329#p94329"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94329#p94329"><![CDATA[
Pretty much anything...<br>"arg" or "text" would do just fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Sep 11, 2010 11:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kenh83]]></name></author>
		<updated>2010-09-11T10:13:30-04:00</updated>

		<published>2010-09-11T10:13:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94327#p94327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94327#p94327"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94327#p94327"><![CDATA[
What should be used instead of args?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11350">kenh83</a> — Sat Sep 11, 2010 10:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-09-11T09:28:22-04:00</updated>

		<published>2010-09-11T09:28:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94325#p94325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94325#p94325"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94325#p94325"><![CDATA[
kenh,<br>You could loop through all available channels, test each for the "relaycommand" status, and if set, issue the needed commands on that channel..<br><br>On a side-note, avoid using the name "args" in your argument list, as this word is handled in a different manner by tcl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Sep 11, 2010 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kenh83]]></name></author>
		<updated>2010-09-11T08:29:31-04:00</updated>

		<published>2010-09-11T08:29:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94324#p94324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94324#p94324"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94324#p94324"><![CDATA[
yes, ceasar thank you for correcting that, but that is not my question or why I posted. Please re-read.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11350">kenh83</a> — Sat Sep 11, 2010 8:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2010-09-11T04:42:55-04:00</updated>

		<published>2010-09-11T04:42:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94323#p94323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94323#p94323"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94323#p94323"><![CDATA[
Replace:<div class="codebox"><p>Code: </p><pre><code>setudef +relaycommand </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>setudef flag relaycommand</code></pre></div>You can replace <span style="text-decoration:underline">relaycommand</span> with anything as long as isn't used already.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Sep 11, 2010 4:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kenh83]]></name></author>
		<updated>2010-09-11T08:29:52-04:00</updated>

		<published>2010-09-10T23:40:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94321#p94321</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94321#p94321"/>
		<title type="html"><![CDATA[setudef tips plesae]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94321#p94321"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag relaycommand bind pub - !command cmd:procproc cmd:proc { nick uhost hand chan args } {  if {[channel get $chan relaycommand]} {   putlog "detected !command and +relaycommand was set to this channel - $chan"  }}</code></pre></div>is it possible in some way that i'm not able to figure out or find out by reading available documentation, to be able to add, beneath that "putlog" command, to use putallbots WITHOUT specifying a channel within the putall bots command .. and be able to have the other bot that receives the putallbots command be able to know which channel to send text to base off of 'setudef' <br><br>hopefully this make sense.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> i really hope it does and that someone can shine some lite for me <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=11350">kenh83</a> — Fri Sep 10, 2010 11:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
