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

	<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-08T00:01:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-08-08T00:01:38-04:00</updated>

		<published>2003-08-08T00:01:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24560#p24560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24560#p24560"/>
		<title type="html"><![CDATA[Need help with this procedure]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24560#p24560"><![CDATA[
I need help with this procedure, I added a new channel on irc and i need to add it to this procedure.<br>I had 4 cheannels on irc and now i have 5. how does it get the "T" value or any of the other values if {$chanID == "T" } { set cchan $tempchan<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<br><br>Can any of you answer this question?<p>Statistics: Posted by Guest — Fri Aug 08, 2003 12:01 am</p><hr />
]]></content>
	</entry>
	</feed>
