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

	<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-05-02T10:42:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-02T10:42:26-04:00</updated>

		<published>2003-05-02T10:42:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19729#p19729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19729#p19729"/>
		<title type="html"><![CDATA[bind/proc sections per channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19729#p19729"><![CDATA[
<blockquote class="uncited"><div>My question is: Is this valid? Can I do this?</div></blockquote>Not unless you do the channel check inside the procs like ppslim told you to.<br>Checking a global variable at compile time (like you did in your code example) won't do you any good.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri May 02, 2003 10:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-02T10:32:09-04:00</updated>

		<published>2003-05-02T10:32:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19728#p19728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19728#p19728"/>
		<title type="html"><![CDATA[bind/proc sections per channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19728#p19728"><![CDATA[
That is exactly what I want. I want to set up different triggers (or maybe even the same triggers) on different channels.<br><br>My question is: Is this valid? Can I do this?<p>Statistics: Posted by Guest — Fri May 02, 2003 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-01T17:58:31-04:00</updated>

		<published>2003-05-01T17:58:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19707#p19707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19707#p19707"/>
		<title type="html"><![CDATA[bind/proc sections per channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19707#p19707"><![CDATA[
Your above example creates two seperate triggers.<br><br>You simply check inside the proc which channel it is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu May 01, 2003 5:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-01T16:40:38-04:00</updated>

		<published>2003-05-01T16:40:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19705#p19705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19705#p19705"/>
		<title type="html"><![CDATA[bind/proc sections per channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19705#p19705"><![CDATA[
Hi there,<br><br>At this moment I ahve set up 1 single bot that sits in three different channels. I want it to respond to public commands in all three channels. <div class="codebox"><p>Code: </p><pre><code>bind pub - !cmd cmd  proc cmd {nick host handle chan text} {  if {$chan == "#"} {            puthelp "PRIVMSG $chan : this is the output on #chan1"    }  if {$chan == "#chan2"} {    puthelp "PRIVMSG $chan : And this is the output on #chan2"    }  }</code></pre></div>My question is: Can I split a script in more sections, where each section describes all the binds and procs for it's own channel? Something like:<div class="codebox"><p>Code: </p><pre><code>if {$chan == "#chan1"} {          bind pub - !Samplecommand1 Samplecommand1   proc Samplecommand1 {nick host handle chan text} {    puthelp "PRIVMSG $chan : this is the output on #chan1"    }  }if {$chan == "#chan2"} {  bind pub - !AnotherCommand AnotherCommand  proc AnotherCommand {nick host handle chan text} {    puthelp "PRIVMSG $chan : And this is the output on #chan2"    }  }</code></pre></div><p>Statistics: Posted by Guest — Thu May 01, 2003 4:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
