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

	<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>2007-10-06T15:01:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-06T15:01:36-04:00</updated>

		<published>2007-10-06T15:01:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76426#p76426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76426#p76426"/>
		<title type="html"><![CDATA[Passing on a variable outside  a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76426#p76426"><![CDATA[
That's why we're here <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=8052">nml375</a> — Sat Oct 06, 2007 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mr B]]></name></author>
		<updated>2007-10-06T13:56:41-04:00</updated>

		<published>2007-10-06T13:56:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76423#p76423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76423#p76423"/>
		<title type="html"><![CDATA[Passing on a variable outside  a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76423#p76423"><![CDATA[
Ok it took me a bit cause I made some mistakes at first but I finally saw the light<br>passing on using the global command works now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanks for pushing me in the right direction nml375 and for the explantion on the second problem, that also works like a charm now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9351">Mr B</a> — Sat Oct 06, 2007 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-06T07:24:20-04:00</updated>

		<published>2007-10-06T07:24:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76409#p76409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76409#p76409"/>
		<title type="html"><![CDATA[Passing on a variable outside  a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76409#p76409"><![CDATA[
1: Check out the <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/global.htm" class="postlink">global</a> command.<br>Obviously you are already using it, probably just need to read alittle to figure out how to use it.<br><br>2: Use \ooo or \xhh to create any character, not /ooo or /xhh  (ooo being the octal value, such as 002, xhh being hexadecimal value, such as x02).<br>Thus, this should do the trick:<div class="codebox"><p>Code: </p><pre><code>bind pubm - "$prech \002\[*" reread</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Oct 06, 2007 7:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mr B]]></name></author>
		<updated>2007-10-06T00:16:33-04:00</updated>

		<published>2007-10-06T00:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76401#p76401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76401#p76401"/>
		<title type="html"><![CDATA[Passing on a variable outside  a proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76401#p76401"><![CDATA[
I just started learning tcl and came across a couple things I just couldn't find any answers to.<br>Here goes:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !test linereadproc lineread {nick host handle chan text} {  global prech homech  if {$chan == $homech} {  putserv "PRIVMSG $prech :$text" }</code></pre></div>My first question is, is it possible to pass a variable from one procedure onto another procedure (without using a file) and how qould that work<br>In this case the content of $text, since I want to use it in my second procedure.<br><br>-<br>My second procedure will read a specific line, which starts with <strong class="text-strong">[</strong><br>My first thought was to use the \[*<div class="codebox"><p>Code: </p><pre><code>bind pubm - "$prech \[*" reread </code></pre></div>which obviously doesn't work since the [ is in bold<br>after that I also tried /002\[ to no avail<div class="codebox"><p>Code: </p><pre><code>bind pubm - "$prech /002\[*" reread </code></pre></div>My question is, is there a way to get this to work in the bind pubm line.<br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9351">Mr B</a> — Sat Oct 06, 2007 12:16 am</p><hr />
]]></content>
	</entry>
	</feed>
