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

	<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>2001-11-21T09:19:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-21T09:19:00-04:00</updated>

		<published>2001-11-21T09:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1867#p1867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1867#p1867"/>
		<title type="html"><![CDATA[some small problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1867#p1867"><![CDATA[
thx very much guys<p>Statistics: Posted by Guest — Wed Nov 21, 2001 9:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2001-11-20T18:25:00-04:00</updated>

		<published>2001-11-20T18:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1842#p1842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1842#p1842"/>
		<title type="html"><![CDATA[some small problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1842#p1842"><![CDATA[
Dopestar,<br><br>the reason for the added characters is that your variable $info now has become a list of separated items. You will have to "join" these separated items. Something like:<br><br>set info [join [lrange $temp 8 [llength $temp]]]<br><br>For some reason list operations on strings are often used in eggdrop tcl's.<br>Why not using a (faster) string operation (scan) on a string?<br><br>gets $fd temp<br>close $dateichen<br><br>scan $temp "%s %s %s %s %s %s %s %s %[^n]" nickname channel hostmask weekday month day daytime year info<br><br>Make sure that the total number of items (9: nickname, channel etc.) is available, else the scan will break.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Nov 20, 2001 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-20T15:03:00-04:00</updated>

		<published>2001-11-20T15:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1837#p1837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1837#p1837"/>
		<title type="html"><![CDATA[some small problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1837#p1837"><![CDATA[
well thx, but it fixes ony half of the problem. now if there is a quote for example<br>"bla blal bla bla" bla<br><br>the tcl changes it to<br><br>"{bla} bla bla" bla<br><br>any ideas? <p>Statistics: Posted by Guest — Tue Nov 20, 2001 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-20T12:47:00-04:00</updated>

		<published>2001-11-20T12:47:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1829#p1829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1829#p1829"/>
		<title type="html"><![CDATA[some small problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1829#p1829"><![CDATA[
As stated, you are trying to perform list command on a string.<br><br>Simply changing<div class="codebox"><p>Code: </p><pre><code>set temp [gets $dateichen]</code></pre></div>to <div class="codebox"><p>Code: </p><pre><code>set temp [split [gets $dateichen]]</code></pre></div>should fix the problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 20, 2001 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-20T11:54:00-04:00</updated>

		<published>2001-11-20T11:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1822#p1822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1822#p1822"/>
		<title type="html"><![CDATA[some small problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1822#p1822"><![CDATA[
well i try to read the infos from the file the following way:<br>--- cut ---<br>set temp [gets $dateichen ]<br>close $dateichen<br>set nickname [lindex $temp 0]<br>set channel [lindex $temp 1]<br>set hostmask [lindex $temp 2]<br>set weekday [lindex $temp 3]<br>set month [lindex $temp 4]<br>set day [lindex $temp 5]<br>set daytime [lindex $temp 6]<br>set year [lindex $temp 7]<br>set info [lrange $temp 8 [llength $temp]]<br>--- cut ----<br>well if $info contains an " then i get the error, thats it <br>any idea?<br><br>&lt;font size=-1&gt;[ This Message was edited by: dopestar on 2001-11-20 08:59 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Tue Nov 20, 2001 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-20T10:25:00-04:00</updated>

		<published>2001-11-20T10:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1817#p1817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1817#p1817"/>
		<title type="html"><![CDATA[some small problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1817#p1817"><![CDATA[
This usualy happens when you start handling a list as a string.<br><br>You would have to show use the offending code to see any way of fixing it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 20, 2001 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-20T07:32:00-04:00</updated>

		<published>2001-11-20T07:32:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1813#p1813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1813#p1813"/>
		<title type="html"><![CDATA[some small problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1813#p1813"><![CDATA[
hi there<br>i constantly get the error "unmatched open quote in list" whenever i try to save a topic including one or more "s to a file. anybody knows how to get rid of this? thx =)<p>Statistics: Posted by Guest — Tue Nov 20, 2001 7:32 am</p><hr />
]]></content>
	</entry>
	</feed>
