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

	<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>2004-02-18T04:05:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-18T04:05:01-04:00</updated>

		<published>2004-02-18T04:05:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33689#p33689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33689#p33689"/>
		<title type="html"><![CDATA[Finally]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33689#p33689"><![CDATA[
Finally got the format i was looking for, accept i'm geetting double or something. <div class="codebox"><p>Code: </p><pre><code>set notemsg "[strftime %a%t%b%t%d%t%t%T%t%Z]- $rest"</code></pre></div> Yeilds <div class="codebox"><p>Code: </p><pre><code>Note 2 From &lt;from&gt;: Wed Feb 18 03:09:13 EST - &lt;from&gt; &lt;msg&gt;</code></pre></div> Where the &lt;From&gt; is echo'd twice for some reason...<p>Statistics: Posted by Guest — Wed Feb 18, 2004 4:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-02-17T01:27:23-04:00</updated>

		<published>2004-02-17T01:27:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33668#p33668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33668#p33668"/>
		<title type="html"><![CDATA[Re: ok..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33668#p33668"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code> set notemsg [join [split [lrange $rest 1 [strftime %d-%m-%Y@%H:%M] end ]]]</code></pre></div></div></blockquote><a href="http://tcl.tk/man/tcl8.4/TclCmd/lrange.htm" class="postlink">lrange</a> is for extracting a range of elements from a <a href="http://tcl.tk/man/tcl8.4/TclCmd/list.htm" class="postlink">list</a>. I think you mean <a href="http://tcl.tk/man/tcl8.4/TclCmd/linsert.htm" class="postlink">linsert</a> or <a href="http://tcl.tk/man/tcl8.4/TclCmd/lreplace.htm" class="postlink">lreplace</a>, but first you need to make sure you're working with a valid list - which means you probably need to <a href="http://tcl.tk/man/tcl8.4/TclCmd/split.htm" class="postlink">split</a> that string of yours, do the list operation, then <a href="http://tcl.tk/man/tcl8.4/TclCmd/join.htm" class="postlink">join</a> the result. But if you want the timestamp to be the first word of the string you can skip all that and...<div class="codebox"><p>Code: </p><pre><code>set notemsg "[strftime %d-%m-%Y@%H:%M] $rest"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Feb 17, 2004 1:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-17T00:58:50-04:00</updated>

		<published>2004-02-17T00:58:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33667#p33667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33667#p33667"/>
		<title type="html"><![CDATA[ok..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33667#p33667"><![CDATA[
ok, I'm going to put it into the (msg) arg, but no matter where I put it I get this error:<div class="codebox"><p>Code: </p><pre><code>Tcl error [pub_sendnote]: wrong # args: should be "lrange list first last"</code></pre></div>actual arg is:<div class="codebox"><p>Code: </p><pre><code> set notemsg [join [split [lrange $rest 1 [strftime %d-%m-%Y@%H:%M] end ]]]</code></pre></div><p>Statistics: Posted by Guest — Tue Feb 17, 2004 12:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-02-16T14:59:13-04:00</updated>

		<published>2004-02-16T14:59:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33655#p33655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33655#p33655"/>
		<title type="html"><![CDATA[Re: Timestamp Storenote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33655#p33655"><![CDATA[
<blockquote class="uncited"><div>Any suggestions?</div></blockquote>Read about the storenote command in doc/tcl-commands.doc, then decide what argument you want the timestamp to be part of and include it in that argument <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Feb 16, 2004 2:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-16T14:38:24-04:00</updated>

		<published>2004-02-16T14:38:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33653#p33653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33653#p33653"/>
		<title type="html"><![CDATA[Timestamp Storenote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33653#p33653"><![CDATA[
I've tried some variations, but i'm still new to TCL.  I need to timestamp storenote and can't seem to get it right.<br><div class="codebox"><p>Code: </p><pre><code>storenote $hand $notehand [strftime %d-%m-%Y@%H:%M] $notemsg 0</code></pre></div>Any suggestions?<p>Statistics: Posted by Guest — Mon Feb 16, 2004 2:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
