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

	<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>2003-08-07T16:36:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jammer1]]></name></author>
		<updated>2003-08-07T16:36:40-04:00</updated>

		<published>2003-08-07T16:36:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24539#p24539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24539#p24539"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24539#p24539"><![CDATA[
Geez guys, I have read  the tcl.doc.<br><br>What I'm looking for is how do I get the value thats for the new channel?<br><br>if {$chanID == "T" } { set cchan $tempchan <br>} elseif {$chanID == "G" } { set cchan $goodchan <br>} elseif {$chanID == "O" } { set cchan $opschan <br>} elseif {$chanID == "M" } { set cchan $mainchan <br>} else { <br>putlog "bad ID sent to do_bot_mode $chanID" <br>return 0 <br>} <br>This procedure statement $chanID == "T" the "T" is my temp channel<br>$chanID == "G"  the "G" is my good channel<br>$chanID == "O" the "O" is my ops channel<br>$chanID == "M"  the "M" is my main channel<br><br>How do I find the value for the new channel I created on the irc?<br>This procedure directs my bots to do different functions on these channels.<br>it actually tells the bots where to go to do the function.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2692">jammer1</a> — Thu Aug 07, 2003 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-07T15:35:49-04:00</updated>

		<published>2003-08-07T15:35:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24537#p24537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24537#p24537"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24537#p24537"><![CDATA[
read at the end of the tcl-commands.doc to learn about the "MATCH CHARACTERS"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Aug 07, 2003 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jammer1]]></name></author>
		<updated>2003-08-07T15:24:59-04:00</updated>

		<published>2003-08-07T15:24:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24534#p24534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24534#p24534"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24534#p24534"><![CDATA[
Well i added a new channel in irc and i need to get it in the procedure.<br>problem is I don't know how to add it to the procedure. This statement says } elseif {$chanID == "M" } { set cchan $mainchan <br>I can just add the same statement as } elseif {$chanID == "?" } { set cchan $newchan, but i don't know what the value "?" is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2692">jammer1</a> — Thu Aug 07, 2003 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-07T15:03:44-04:00</updated>

		<published>2003-08-07T15:03:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24531#p24531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24531#p24531"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24531#p24531"><![CDATA[
Huh? The chanid thing from this code is the first argument from the line that comes with the command when the proc is triggered. What exactly do you want to do/change there?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 07, 2003 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jammer1]]></name></author>
		<updated>2003-08-07T12:45:52-04:00</updated>

		<published>2003-08-07T12:45:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24524#p24524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24524#p24524"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24524#p24524"><![CDATA[
yeah, but i'm asking how to add a channel to this procedure, thats not in the that file, went there first before I ask the question. I'm not familiar with the chanid in the procedure. I need to know how to find the character like the one in this statement if {$chanID == "T" } { set cchan $tempchan<br> <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=2692">jammer1</a> — Thu Aug 07, 2003 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-07T11:58:56-04:00</updated>

		<published>2003-08-07T11:58:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24521#p24521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24521#p24521"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24521#p24521"><![CDATA[
To add a channel within TCL do something like: channel add #channel .. You should consult the tcl-commands.doc file first then ask questions. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 07, 2003 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jammer1]]></name></author>
		<updated>2003-08-07T11:55:54-04:00</updated>

		<published>2003-08-07T11:55:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24519#p24519</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24519#p24519"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24519#p24519"><![CDATA[
sorry I iadded the procedure but for some reason it didn't take.<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <br><br>#################################################<br># bind bot - mode do_bot_mode<br>#################################################<br># other nets don't know my chans so they give me<br># Chanid<br># incoming no need for duty comp<br>proc do_bot_mode { nick command testes } {<br>global tempchan opschan goodchan mainchan<br>set chanID [lindex $testes 0]<br>set who [lindex $testes 1]<br>set host [lindex $testes 2]<br>set rest [lrange $testes 3 end]<br>if {$chanID == "T" } { set cchan $tempchan<br>} elseif {$chanID == "G" } { set cchan $goodchan<br>} elseif {$chanID == "O" } { set cchan $opschan<br>} elseif {$chanID == "M" } { set cchan $mainchan<br>} else {<br>putlog "bad ID sent to do_bot_mode $chanID"<br>return 0<br>}<br>set lamahs [chanlist $mainchan]<br>foreach lamah $lamahs {<br>if {[maskhost [getchanhost $lamah $mainchan ]] == $host} {<br>putserv "MODE $cchan $rest $lamah "<br>broadcast_ops "14æ set mode $rest for $lamah on $cchan"<br>return 0<br>}<br>}<br>}<br>#####&gt;&gt;&gt;&gt;&gt; END bind bot - mode do_bot_mode<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2692">jammer1</a> — Thu Aug 07, 2003 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-07T11:49:09-04:00</updated>

		<published>2003-08-07T11:49:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24516#p24516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24516#p24516"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24516#p24516"><![CDATA[
what procedure ?<br><br>if u mean the eggdrop, then see <strong class="text-strong">.help +chan</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Aug 07, 2003 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jammer1]]></name></author>
		<updated>2003-08-07T11:27:46-04:00</updated>

		<published>2003-08-07T11:27:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24514#p24514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24514#p24514"/>
		<title type="html"><![CDATA[adding new channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24514#p24514"><![CDATA[
how do i add a new channel to this procedure.<br><br> <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=2692">jammer1</a> — Thu Aug 07, 2003 11:27 am</p><hr />
]]></content>
	</entry>
	</feed>
