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

	<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>2005-06-07T13:54:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-07T13:54:21-04:00</updated>

		<published>2005-06-07T13:54:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50384#p50384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50384#p50384"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50384#p50384"><![CDATA[
your <strong class="text-strong">blah</strong> is not global, and needs to be set before passing callback to egghttp (I told you to get a clue about the very basics for a reason... now if you'll excuse me, my hints for you on this topic stop here)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 07, 2005 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-07T13:39:52-04:00</updated>

		<published>2005-06-07T13:39:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50381#p50381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50381#p50381"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50381#p50381"><![CDATA[
<blockquote class="uncited"><div>it doesn't work the first time "in public" since you output the result (served) immediately after passing the callback to egghttp, meaning that by the time you issue that NOTICE, your callback proc still hasn't completed (or even invoked), so served is not set </div></blockquote>I know that from the start, it's pretty obvious, and I already tried to put the notice nick in the callback, but nothing shows up! :\<br>So I did not know what to do!<br>You kept talking about how do select the text, so I was not getting what was to be done... The text showed fine... I was not understanding what you meant...<br>Until I read this line!<br><br><blockquote class="uncited"><div>in the public trigger proc, save the inquiring nick in a global variable and then output your NOTICE in the callback, using that variable</div></blockquote>DONE! I know what I was doing wrong... I used notice nick... but it did not get the nick to notice! Using the global varible, it will get the nick. Thanks!<br>Works fine...<br>I can upload the code to egghelp.org if you guys are interessed... also made it to fit Shoutcast servers for info without owning them!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Tue Jun 07, 2005 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-07T13:18:58-04:00</updated>

		<published>2005-06-07T13:18:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50380#p50380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50380#p50380"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50380#p50380"><![CDATA[
*sigh*<br><br>it doesn't work the first time "in public" since you output the result (served) immediately after passing the callback to egghttp, meaning that by the time you issue that NOTICE, your callback proc still hasn't completed (or even invoked), so served is not set<br><br>in the public trigger proc, save the inquiring nick in a global variable and then output your NOTICE in the callback, using that variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 07, 2005 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-07T12:51:24-04:00</updated>

		<published>2005-06-07T12:51:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50376#p50376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50376#p50376"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50376#p50376"><![CDATA[
but you see... did you run the script on an eggdrop?<br>If you did, you would have notice it does get the info... only from the second time and beyond... so the code for fetching stuff is ok, is does get exactly was is intended... <br><br>but it just does not work at the first time in public! but in the partyline it shows the complete info!<br>I tried to insert your code, but now the relevant info does not show up...<br>I don't know what do you intend with your code, so I could use a bit more of help...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Tue Jun 07, 2005 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-07T12:04:15-04:00</updated>

		<published>2005-06-07T12:04:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50373#p50373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50373#p50373"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50373#p50373"><![CDATA[
<blockquote class="uncited"><div>hence, help was given, but it does not work.</div></blockquote>it will work when you get a clue on how to strip HTML tags using regexps and fix your code; here's another hint (I won't write the script for you):<div class="codebox"><p>Code: </p><pre><code>regsub -all -- {&lt;[^&gt;]*&gt;} $html_string "" plain_string</code></pre></div>this will strip all characters in-between (and including) &lt; and &gt; brackets in <strong class="text-strong">html_string</strong> and put the result in <strong class="text-strong">plain_string</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 07, 2005 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-07T10:11:32-04:00</updated>

		<published>2005-06-07T10:11:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50371#p50371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50371#p50371"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50371#p50371"><![CDATA[
<blockquote class="uncited"><div>"here, if [regexp] doesn't find a match, served won't be set, hence the "No such variable" error on the next line; in TCL, unlike C, every variable must be initialized (with [set] or implicitly by some other commands) before being used "</div></blockquote>hence I wrote that<br><br>set served ""<br><br><blockquote class="uncited"><div>"that [regexp], judging by its arguments, needs to be changed to [regsub] "</div></blockquote>done that too...<br>using regsub won't work since I see this <div class="codebox"><p>Code: </p><pre><code>Soulseek server &lt;html&gt;&lt;head&gt;&lt;title&gt;slsk serverstatus&lt;/title&gt;&lt;style&gt;body { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 8pt; color : gray; font-weight: bold; scrollbar-face-color: #ffffff; scrollbar-highlight-color: #efefef; scrollbar-3dlight-color: #ffffff; scrollbar-darkshadow-color: #ffffff; scrollbar-shadow-color: #afafaf; scrollbar-arrow-color: #afafaf; scrollbar-track-color: #ffffff; overflow: auto;}A, A:ACTIVE, A:FOCUS, A:HOVER, A:LINK, A:VIS</code></pre></div> in the partyline!<br><br>using each one in particular or both together, simply does not work...<br>shows the line without any info regarding what "served" should bring.<br><br>hence, help was given, but it does not work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Tue Jun 07, 2005 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-07T04:09:19-04:00</updated>

		<published>2005-06-07T04:09:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50360#p50360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50360#p50360"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50360#p50360"><![CDATA[
well, help has already been given to you, I wonder what of the following you didn't understand:<ul><li><strong class="text-strong">served</strong> is declared as global, but it's used (possibly) before initialization:<div class="codebox"><p>Code: </p><pre><code>    regexp {the server (.*)&lt;br&gt;} $body {} served    putlog "Soulseek server $served - $url." </code></pre></div>here, if [regexp] doesn't find a match, <strong class="text-strong">served</strong> won't be set, hence the "No such variable" error on the next line; in TCL, unlike C, every variable must be initialized (with [set] or implicitly by some other commands) before being used</li><li>that [regexp], judging by its arguments, needs to be changed to [regsub]</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 07, 2005 4:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-07T03:03:26-04:00</updated>

		<published>2005-06-07T03:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50358#p50358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50358#p50358"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50358#p50358"><![CDATA[
I tried to make that myself... and I have read about variables in online tutorials... but I don't get what is wrong...<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><br>I just need help to fix it... can you just write was is wrong?<br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Tue Jun 07, 2005 3:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-07T00:53:23-04:00</updated>

		<published>2005-06-07T00:53:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50356#p50356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50356#p50356"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50356#p50356"><![CDATA[
<blockquote class="uncited"><div>In fact it does... but it shows only the text without saying the part I want from the site... that is, it does not say if the server is up or down.... :\<br>and I can't understand why...</div></blockquote>read a good TCL book, or learn online using tons of useful resources; study other people's code, and try to code stuff yourself, starting with basic things<br><br>then you won't be that puzzled and unable to grasp simple notions like global variables<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 07, 2005 12:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-05T10:46:23-04:00</updated>

		<published>2005-06-05T10:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50272#p50272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50272#p50272"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50272#p50272"><![CDATA[
In fact it does... but it shows only the text without saying the part I want from the site... that is, it does not say if the server is up or down.... :\<br>and I can't understand why...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Sun Jun 05, 2005 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-06-05T09:16:35-04:00</updated>

		<published>2005-06-05T09:16:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50269#p50269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50269#p50269"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50269#p50269"><![CDATA[
Try putting this<div class="codebox"><p>Code: </p><pre><code>set served ""</code></pre></div> under <div class="codebox"><p>Code: </p><pre><code>set pubtrigger "!soulseek"</code></pre></div> This should create the variable ready for use.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sun Jun 05, 2005 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-05T08:53:00-04:00</updated>

		<published>2005-06-05T08:53:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50268#p50268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50268#p50268"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50268#p50268"><![CDATA[
any news on this one? I've tried serveral stuff, no sucess... :\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Sun Jun 05, 2005 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-04T15:24:36-04:00</updated>

		<published>2005-06-04T15:24:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50232#p50232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50232#p50232"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50232#p50232"><![CDATA[
<a href="http://www.remmelt.com/slskboard/status.php" class="postlink">http://www.remmelt.com/slskboard/status.php</a><br><br>It just gets inf ofrom this page, taht shows the status of Soulseek server.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6079">Thunderdome</a> — Sat Jun 04, 2005 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-04T14:56:28-04:00</updated>

		<published>2005-06-04T14:56:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50228#p50228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50228#p50228"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50228#p50228"><![CDATA[
I've no idea what soulseek server is, but it seems that regexp should actually be regsub<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jun 04, 2005 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thunderdome]]></name></author>
		<updated>2005-06-04T14:47:28-04:00</updated>

		<published>2005-06-04T14:47:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50227#p50227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50227#p50227"/>
		<title type="html"><![CDATA[&quot;No such variable&quot; in my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50227#p50227"><![CDATA[
I basically I must put..<br><div class="codebox"><p>Code: </p><pre><code>set served "this is bull, but hey, the server went on vacations"</code></pre></div>so something will show? or can I have a "real" msg based on the info it gets from that webpage?<br><br>Or... can I make the bot run it one time by itself, so the next time is always ok?<br><br>Thanks for the help.. <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=6079">Thunderdome</a> — Sat Jun 04, 2005 2:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
