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

	<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-29T11:27:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LiquidZoo]]></name></author>
		<updated>2005-06-29T11:27:38-04:00</updated>

		<published>2005-06-29T11:27:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51519#p51519</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51519#p51519"/>
		<title type="html"><![CDATA[Re: 2 scripting problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51519#p51519"><![CDATA[
Thanks!<br><br>Aside from a couple of formatting errors I had in the rest of the script, they now work perfectly!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5651">LiquidZoo</a> — Wed Jun 29, 2005 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-06-29T04:29:43-04:00</updated>

		<published>2005-06-29T04:29:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51510#p51510</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51510#p51510"/>
		<title type="html"><![CDATA[Re: 2 scripting problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51510#p51510"><![CDATA[
<blockquote class="uncited"><div>First off, how do I execute a linux command (date -u) and store it inside a variable that I can later call in the middle of a block of text for a response?  Say I wanted to call the variable gmtTime, and I want the block of text to be "The current time is $gmtTime (GMT)"</div></blockquote>you can simply use 'set gmtTime [exec date -u]' for that. However, date -u returns the UTC time (GMT 0 time without daylight timeshift). If you prefer GMT 0 with posible daylight timeshift you should simply use 'set gmtTime [ctime [unixtime]]'.<br><blockquote class="uncited"><div>if {[strlwr $message_chan]==[strlwr $chan]}{ </div></blockquote>you are getting "Tcl error: extra characters after close-brace" here, right?<br>you are missing the white space between the close and open brace at the end of the line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Jun 29, 2005 4:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LiquidZoo]]></name></author>
		<updated>2005-06-29T03:35:43-04:00</updated>

		<published>2005-06-29T03:35:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51509#p51509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51509#p51509"/>
		<title type="html"><![CDATA[2 scripting problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51509#p51509"><![CDATA[
I have 2 probably simple, but unbelievably annoying problems, each with a script I am trying to modify for my own needs.<br><br>First off, how do I execute a linux command (date -u) and store it inside a variable that I can later call in the middle of a block of text for a response?  Say I wanted to call the variable gmtTime, and I want the block of text to be "The current time is $gmtTime (GMT)"<br><br>The second one appears to have a bracket out of place, but I can't for the life of me figure out where.  Each time I remove a closing bracket (or brace, whatever you want to call them) it throws up a new error.  Here is the relavent proc from the script:<br><div class="codebox"><p>Code: </p><pre><code>proc pub:nerf { nick uhost handle channel testes } {set who [lindex [split $testes] 0]global xmsgset excuse [lindex $xmsg [rand [llength $xmsg]]]if {[strlwr $message_chan]==[strlwr $chan]}{if {$who == ""} {  putserv "NOTICE $nick :Usage: !nerf &lt;nick&gt;"  return 1  }  putserv "PRIVMSG $channel :\001ACTION [subst $excuse]\001"}}putlog "NERF! Loaded"</code></pre></div>Can anyone please help me out with these 2 issues?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5651">LiquidZoo</a> — Wed Jun 29, 2005 3:35 am</p><hr />
]]></content>
	</entry>
	</feed>
