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

	<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-05-05T21:05:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-05T21:05:16-04:00</updated>

		<published>2008-05-05T21:05:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82742#p82742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82742#p82742"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82742#p82742"><![CDATA[
Okay I feel stupid now, that was obvious, maybe next time I should be rested before asking questions,thanks for dinner though  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Mon May 05, 2008 9:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-05-05T20:49:56-04:00</updated>

		<published>2008-05-05T20:49:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82741#p82741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82741#p82741"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82741#p82741"><![CDATA[
&lt;spoonfeed&gt;<div class="codebox"><p>Code: </p><pre><code>set linktext(#chan1) "\002link can be found at\002 http://link"</code></pre></div>&lt;/spoonfeed&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon May 05, 2008 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-05T20:43:56-04:00</updated>

		<published>2008-05-05T20:43:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82740#p82740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82740#p82740"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82740#p82740"><![CDATA[
Okay, now i'm lost, could you please explain to me like I was very young hehe.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Mon May 05, 2008 8:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-05-05T20:21:41-04:00</updated>

		<published>2008-05-05T20:21:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82739#p82739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82739#p82739"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82739#p82739"><![CDATA[
You'll need to encapsulate multiple arguments (words) in quotes or brackets...<br>ie.<br><br>set var "arg arg2"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon May 05, 2008 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-05T19:52:35-04:00</updated>

		<published>2008-05-05T19:52:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82738#p82738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82738#p82738"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82738#p82738"><![CDATA[
Damn.. awsome quick response and thanks again, I have yet another question (sorry to bug you)<br>I tried using some text formatting like so:<div class="codebox"><p>Code: </p><pre><code>set linktext(#chan1) \002link can be found at\002 http://link</code></pre></div>But I guess that was very far from correct since the bot crashed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Mon May 05, 2008 7:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-05-05T19:38:28-04:00</updated>

		<published>2008-05-05T19:38:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82737#p82737</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82737#p82737"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82737#p82737"><![CDATA[
change the two lines that have:<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $chan :...."</code></pre></div>to:<br><div class="codebox"><p>Code: </p><pre><code>putserv "NOTICE $nick :..."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon May 05, 2008 7:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-05T19:30:49-04:00</updated>

		<published>2008-05-05T19:30:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82736#p82736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82736#p82736"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82736#p82736"><![CDATA[
Awsome, this works perfectly, thanks alot, I was wondering, where would I alter the script, so it would notice the one using the comand, so it won't show the output to the entire channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Mon May 05, 2008 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-05-05T19:04:58-04:00</updated>

		<published>2008-05-05T19:04:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82733#p82733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82733#p82733"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82733#p82733"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># configuration ## use lowercase for chan namesset linktext(default) http://www.default.com/set linktext(#chan1) http://www.chan1.com/set linktext(#chan2) http://www.chan2.com/# etc..#end of config #bind pub - !link proc:linktextproc proc:linktext {nick uhost hand chan text} {  global linktext  set chan [string tolower $chan]  if {![info exists linktext($chan)]} {    putserv "PRIVMSG $chan :$linktext(default)"  } else {    putserv "PRIVMSG $chan :$linktext($chan)"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon May 05, 2008 7:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-05T17:14:58-04:00</updated>

		<published>2008-05-05T17:14:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82732#p82732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82732#p82732"/>
		<title type="html"><![CDATA[Same script with different output depending on channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82732#p82732"><![CDATA[
What I wish for is, a script with a public command, output denpending on which channel the command is called.<br><br>example:<br><br>Channel1<br>command: !link<br>Result: visit http://******1.com<br><br>Channel2<br>command: !link<br>Result: visit http://******2.com<br><br><br>Meaning, same input on both channels, but different output<br>depending on which channel the command is called.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Mon May 05, 2008 5:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
