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

	<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-09-21T00:22:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-09-21T00:22:54-04:00</updated>

		<published>2005-09-21T00:22:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55945#p55945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55945#p55945"/>
		<title type="html"><![CDATA[What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55945#p55945"><![CDATA[
Hrrr...<br>No luck with that script... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mad.gif" width="15" height="15" alt=":x" title="Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Wed Sep 21, 2005 12:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2005-09-20T14:14:59-04:00</updated>

		<published>2005-09-20T14:14:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55937#p55937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55937#p55937"/>
		<title type="html"><![CDATA[What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55937#p55937"><![CDATA[
Checking for variable existence is good, too.<div class="codebox"><p>Code: </p><pre><code>if {[info exists server_rc1]} { puts "$server_rc1" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Tue Sep 20, 2005 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-20T13:48:54-04:00</updated>

		<published>2005-09-20T13:48:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55936#p55936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55936#p55936"/>
		<title type="html"><![CDATA[What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55936#p55936"><![CDATA[
obviously, by making sure [regsub] matches<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Sep 20, 2005 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-09-20T13:19:44-04:00</updated>

		<published>2005-09-20T13:19:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55935#p55935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55935#p55935"/>
		<title type="html"><![CDATA[What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55935#p55935"><![CDATA[
<blockquote class="uncited"><div>it's there but it's not being set (because that [regsub] doesn't match), hence the error<br><br>DO NOT use raw sockets for quering webservers, use Tcl's built-in <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/http.htm" class="postlink">http package</a></div></blockquote>So... How can I fix that code?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Tue Sep 20, 2005 1:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-20T13:06:41-04:00</updated>

		<published>2005-09-20T13:06:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55934#p55934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55934#p55934"/>
		<title type="html"><![CDATA[What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55934#p55934"><![CDATA[
it's there but it's not being set (because that [regsub] doesn't match), hence the error<br><br>DO NOT use raw sockets for quering webservers, use Tcl's built-in <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/http.htm" class="postlink">http package</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Sep 20, 2005 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-09-20T11:17:33-04:00</updated>

		<published>2005-09-20T11:17:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55930#p55930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55930#p55930"/>
		<title type="html"><![CDATA[What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55930#p55930"><![CDATA[
OK. Deleted that "\" and new error:<div class="codebox"><p>Code: </p><pre><code>TCL error [zip_procedura]: can't read "served_rc_1": no such variable</code></pre></div>I know what it means. But server_rc_1 is here:<div class="codebox"><p>Code: </p><pre><code>regsub -all "&lt;img src=img/icon_dabargrojame.gif width=12 height=11 border=0 align=absmiddle hspace=5&gt;" $bl_rc "" served_rc_1</code></pre></div> <br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Tue Sep 20, 2005 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2005-09-20T11:12:34-04:00</updated>

		<published>2005-09-20T11:12:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55929#p55929</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55929#p55929"/>
		<title type="html"><![CDATA[Re: What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55929#p55929"><![CDATA[
<blockquote class="uncited"><div>puts $sock_zipfm "User-Agent: eggdrop egghelp.nasa-team.net (c)" \</div></blockquote>I think the trailing slash is screwing it up. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Tue Sep 20, 2005 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-09-20T11:06:55-04:00</updated>

		<published>2005-09-20T11:06:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55928#p55928</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55928#p55928"/>
		<title type="html"><![CDATA[What song playing]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55928#p55928"><![CDATA[
Hi,  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>I made this script:<div class="codebox"><p>Code: </p><pre><code>bind pub - !zip zip_proceduraset irc_kanalai ""proc zip_procedura {nick host handle chan arg} {global irc_kanalaiif {[catch {set sock_zipfm [socket www.zipfm.lt 80] } sockerror]} { putlog "news parsing error: $sockerror" return 0 } else { puts $sock_zipfm "GET /grojam.php HTTP/1.1" puts $sock_zipfm "User-Agent: eggdrop egghelp.nasa-team.net (c)" \puts $sock_zipfm "Host: www.zipfm.lt" puts $sock_zipfm "Connection: close" puts $sock_zipfm "" flush $sock_zipfm set empt ""set he "0"while {[eof $sock_zipfm ] != 1} { set bl_rc [gets $sock_zipfm ]if {$bl_rc == $empt} {set he "1"}if {$he == "1"} {set laikas [clock format [expr [clock seconds] + 60*60*24] -format " %H:%M:%S "]while {[string match "&lt;img src=img/icon_dabargrojame.gif width=12 height=11 border=0 align=absmiddle hspace=5&gt;*" $bl_rc]} { regsub -all "&lt;img src=img/icon_dabargrojame.gif width=12 height=11 border=0 align=absmiddle hspace=5&gt;" $bl_rc "" served_rc_1regsub -all "&lt;img src=img/icon_dabargrojame.gif width=12 height=11 border=0 align=absmiddle hspace=5&gt;" $bl_rc "" bl_rc}}} close $sock_zipfm if {$irc_kanalai == "" } {puthelp "NOTICE $nick :Zip FM dabar groja:\002 $served_rc_1 \002"} else {if {[string match -nocase *$chan* $irc_kanalai] != 0 } {puthelp "PRIVMSG $chan :($laikas) Zip FM groja: $served_rc_1"}}after 2000}putlog "Zip FM informacija gauta: $laikas"}</code></pre></div>But when I write in IRC command !zip bot in partyline says:<div class="codebox"><p>Code: </p><pre><code>TCL error [zip_procedura]: wrong # args: should be "puts ?-nonewline? ?channelId? string"</code></pre></div>Help. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Tue Sep 20, 2005 11:06 am</p><hr />
]]></content>
	</entry>
	</feed>
