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

	<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>2006-02-13T02:29:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-02-13T02:29:20-04:00</updated>

		<published>2006-02-13T02:29:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60394#p60394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60394#p60394"/>
		<title type="html"><![CDATA[else problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60394#p60394"><![CDATA[
Did you try common sense? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><div class="codebox"><p>Code: </p><pre><code> if {[string match "*&lt;p&gt;CENTRAL*" $line]} {  if {[regexp {&lt;p&gt;CENTRAL(.*).&lt;/p&gt;} $line - central] &amp;&amp; [string length $central] &gt;= 1} {    putserv "PRIVMSG $channel :$central"  } else {    putserv "PRIVMSG $channel :No Info Available"  }}</code></pre></div>(I added the string length check to see if anything is actually in the variable)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Feb 13, 2006 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2006-02-12T20:44:09-04:00</updated>

		<published>2006-02-12T20:44:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60382#p60382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60382#p60382"/>
		<title type="html"><![CDATA[else problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60382#p60382"><![CDATA[
Hi - I have a script to retrieve a line of data from a webpage. The line is either:<br>&lt;p&gt;and-the-info-here<br><br>or, if there is no info just:<br>&lt;p&gt;<div class="codebox"><p>Code: </p><pre><code>to send this into the room, the script after the socket stuff is:    if {[string match "*&lt;p&gt;CENTRAL*" $line]} {regexp {&lt;p&gt;CENTRAL(.*).&lt;/p&gt;&lt;br&gt;} $line - central    putserv "PRIVMSG $channel :$central"    } else {    putserv "PRIVMSG $channel :No Info Available"  } }}</code></pre></div>however, it is sending both lines to the room even if there is data. I've tried putting returns in after, but then it only does the second line.<br><br>Thanks for any help?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sun Feb 12, 2006 8:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
