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

	<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>2023-05-09T05:32:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-05-09T05:32:36-04:00</updated>

		<published>2023-05-09T05:32:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111948#p111948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111948#p111948"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111948#p111948"><![CDATA[
Seems due to redirections, the DOM is empty, just a 302 header.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue May 09, 2023 5:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wixchat]]></name></author>
		<updated>2023-05-09T05:02:44-04:00</updated>

		<published>2023-05-09T05:02:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111947#p111947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111947#p111947"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111947#p111947"><![CDATA[
now i got new error<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [Google:News]: error "no element found" at line 1 character 0</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13003">wixchat</a> — Tue May 09, 2023 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wixchat]]></name></author>
		<updated>2023-05-08T10:12:44-04:00</updated>

		<published>2023-05-08T10:12:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111946#p111946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111946#p111946"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111946#p111946"><![CDATA[
<blockquote class="uncited"><div>myselve i would focus on:<br><br>package require tdom<br><br>on debian its :<br><br> tcl-tls tcllib<br><br>nott sure what OS you  use</div></blockquote>i use Ubuntu 20.04.6 LTS version<br>tdom is already the newest version (0.9.1-1).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13003">wixchat</a> — Mon May 08, 2023 10:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-05-08T08:28:11-04:00</updated>

		<published>2023-05-08T08:28:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111945#p111945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111945#p111945"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111945#p111945"><![CDATA[
<blockquote class="uncited"><div>The issue is related to the Google news tcl wich is the topic here and isnt opened by wixchat</div></blockquote>It's true, sorry. But I mean first we solve the tls trouble then we solve the tdom trouble.<br><br>Trying to solve 2 problems in the same time alway creates a 3rd problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon May 08, 2023 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-05-08T08:01:02-04:00</updated>

		<published>2023-05-08T08:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111944#p111944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111944#p111944"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111944#p111944"><![CDATA[
The issue is related to the Google news tcl wich is the topic here and isnt opened by wixchat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 08, 2023 8:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-05-08T07:51:49-04:00</updated>

		<published>2023-05-08T07:51:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111943#p111943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111943#p111943"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111943#p111943"><![CDATA[
Your error is not related with initial trouble (the one from wixchat).<br>Open another thread and stay focus on wixchat trouble.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon May 08, 2023 7:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-05-08T07:44:43-04:00</updated>

		<published>2023-05-08T07:44:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111942#p111942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111942#p111942"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111942#p111942"><![CDATA[
after doing .error i got this respons:<br><br><blockquote class="uncited"><div><br><br>error "no element found" at line 1 character 0<br>    while executing<br>"dom parse [getit [langSel]]"<br>    (procedure "Google_TopNews" line 3)<br>    invoked from within<br>"Google_TopNews $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"<br></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 08, 2023 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-05-08T07:42:00-04:00</updated>

		<published>2023-05-08T07:42:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111941#p111941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111941#p111941"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111941#p111941"><![CDATA[
hm i thought <br><br><blockquote class="uncited"><div> package require tls 1.6.4 </div></blockquote>means tls package version 1.6.4 and up is accepted ?<br><br>as i have a version above  1.6.4 as well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 08, 2023 7:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-05-08T06:54:27-04:00</updated>

		<published>2023-05-08T06:54:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111940#p111940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111940#p111940"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111940#p111940"><![CDATA[
The trouble seems to be with the tls package.<br>In party-line, do:<div class="codebox"><p>Code: </p><pre><code>.tcl package require tls</code></pre></div>If the package is installed and correctly loaded, it will give you its version:<div class="codebox"><p>Code: </p><pre><code>.tcl package require tlsTcl: 1.7.22</code></pre></div>And when the error occurs, type .set errorInfo to have a better trace about it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon May 08, 2023 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-05-08T05:57:21-04:00</updated>

		<published>2023-05-08T05:57:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111939#p111939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111939#p111939"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111939#p111939"><![CDATA[
i loaded the code and got this error :<br><blockquote class="uncited"><div> Tcl error [Google_TopNews]: error "no element found" at line 1 character 0 </div></blockquote>it used to work for me before as i used the same tcl  before<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 08, 2023 5:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-05-08T05:51:20-04:00</updated>

		<published>2023-05-08T05:51:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111938#p111938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111938#p111938"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111938#p111938"><![CDATA[
myselve i would focus on:<br><br>package require tdom<br><br>on debian its :<br><br> tcl-tls tcllib<br><br>nott sure what OS you  use<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 08, 2023 5:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wixchat]]></name></author>
		<updated>2023-05-08T04:41:07-04:00</updated>

		<published>2023-05-08T04:41:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111937#p111937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111937#p111937"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111937#p111937"><![CDATA[
<blockquote class="uncited"><div>Did u make sure you have all the packages install that it needs?</div></blockquote>im not sure with this 2 package<br><blockquote class="uncited"><div>package require htmlparse<br>package require textutil::split</div></blockquote>how to check it?<br>and how to install it.<br>thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13003">wixchat</a> — Mon May 08, 2023 4:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-05-08T03:14:15-04:00</updated>

		<published>2023-05-08T03:14:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111936#p111936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111936#p111936"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111936#p111936"><![CDATA[
Did u make sure you have all the packages install that it needs?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 08, 2023 3:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wixchat]]></name></author>
		<updated>2023-05-07T10:03:55-04:00</updated>

		<published>2023-05-07T10:03:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111923#p111923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111923#p111923"/>
		<title type="html"><![CDATA[GoogleNews]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111923#p111923"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Google news v0.3 by nrt (01Dec2015)# Updated GoogleNews Country links and added some more lines for redirected link support (04Jan2018) karakedipackage require tdompackage require httppackage require htmlparsepackage require textutil::splitpackage require tls 1.6.4package present Tcl 8.6set ::oldnews [list ]set googlelink {https://news.google.com/news/rss/headlines/section/topic/NATION}# Length of chars in a line.set newsmax 412# Links shortened to tinyurl. 1 = true , 0 = falseset tinyurl 1# 1 = US_en (U.S.A), 2 = TR (Turkey) , 3 = FR (France), 4 = DE (Germany), 5 = UK_en (U.K) , 6 = RU (Russia)# 7 = IT (Italy) , 8 = NL (Netherlands) , 9 = AU_en (Australia) , 10 = PT (Portugal) , 11 = AR (Arabian World) , 12 = AT_de (Austria)# 13 = BE_fr (Belgium) , 14 = BR_pt (Brazil) , 15 = BG (Bulgaria) , 16 = CA_en (Canada) , 17 = NZ_en (New Zealand) , 18 = PL (Poland)# 19 = RO (Romania) , 20 = CS (Czech Republic) , 21 = NO (Norway) , 22 = CH_fr (Switzerland) , 23 = SV (Sweden) , 24 = SR (Serbia)# 25 = CN_zh (China) , 26 = JA (Japan) , 27 = GR (Greece) , 28 = LT (Lithuania) , 29 = IN_en (India) , 30 = HU (Hungary)# 31 = AR (Argentina) , 32 = ID (Indonesia) , 33 = MY (Malaysia) , 34 = BN (Bangladesh) , 35 = MX (Mexico) , 36 = PK_en (Pakistan)# news in this language/nationset newslang 33# This is for set a limit, do not post if that headline older than ** minutesset headlinedelay 40# How many latest news posts would like to see when you use .topnews ?set TopNewsPosts 4# .news on &lt;- to enable on your #channel / .news off &lt;- for turn this off!setudef flag googlenewsbind pub mnf|oa ".news" news_controlbind evnt - init-server news_refreshbind pub mnf|oa ".topnews" Google_TopNewsproc httpsregister {} {   package require tls   if {[package vcompare [package present tls] 1.7] &gt; 0} {      ::http::register https 443 [list ::tls::socket -autoservername 1]   } else {      ::http::register https 443 [list ::tls::socket -request 0 -require 1 -ssl2 0 -ssl3 0 -tls1 1]   }}proc httpsunregister {} {   ::http::unregister https}proc Google_TopNews {nick uhost hand chan arg} {   if {![channel get $chan googlenews]} { return 0 }   set doc [dom parse [getit [langSel]]]   set root [$doc documentElement]   set i 0   foreach id [$root selectNodes "/rss/channel/item"] {      set desc [[$id selectNodes "description"] text]      set Date [[$id selectNodes "pubDate"] text]      set newsurl [[$id selectNodes "link"] text]      set newstime [lsort -integer -decreasing -index end [clock scan $Date]]      set news "[dom_trim $desc] [news_tiny [getRealLink [dom_trim $newsurl]]] ([duration [expr {[clock seconds] - $newstime}]] ago.)"      if {$i == $::TopNewsPosts} break      news_print $chan "[htmlparse::mapEscapes $news]"      incr i   }   $doc delete}proc langSel {} {   switch -exact -- $::newslang {      1 { set url {us&amp;hl=en&amp;gl=US} }      2 { set url {tr_tr&amp;hl=tr&amp;gl=TR} }      3 { set url {fr&amp;hl=fr&amp;gl=FR} }      4 { set url {de&amp;hl=de&amp;gl=DE} }      5 { set url {uk&amp;hl=en-GB&amp;gl=GB} }      6 { set url {ru_ru&amp;hl=ru&amp;gl=RU} }      7 { set url {it&amp;hl=it&amp;gl=IT} }      8 { set url {nl_nl&amp;hl=nl&amp;gl=NL} }      9 { set url {au&amp;hl=en-AU&amp;gl=AU} }      10 { set url {pt-PT_pt&amp;hl=pt-PT&amp;gl=PT} }      11 { set url {ar_me&amp;hl=ar&amp;gl=ME} }      12 { set url {de_at&amp;hl=de-AT&amp;gl=AT} }      13 { set url {fr_be&amp;hl=fr&amp;gl=BE} }      14 { set url {pt-BR_br&amp;hl=pt-BR&amp;gl=BR} }      15 { set url {bg_bg&amp;hl=bg&amp;gl=BG} }      16 { set url {ca&amp;hl=en-CA&amp;gl=CA} }      17 { set url {nz&amp;hl=en-NZ&amp;gl=NZ} }      18 { set url {pl_pl&amp;hl=pl&amp;gl=PL} }      19 { set url {ro_ro&amp;hl=ro&amp;gl=RO} }      20 { set url {cs_cz&amp;hl=cs&amp;gl=CZ} }      21 { set url {no_no&amp;hl=no&amp;gl=NO} }      22 { set url {fr_ch&amp;hl=fr-CH&amp;gl=CH} }      23 { set url {sv_se&amp;hl=sv&amp;gl=SE} }      24 { set url {sr_rs&amp;hl=sr&amp;gl=RS} }      25 { set url {cn&amp;hl=zh-CN&amp;gl=CN} }      26 { set url {jp&amp;hl=ja&amp;gl=JP} }      27 { set url {el_gr&amp;hl=el&amp;gl=GR} }      28 { set url {lt_lt&amp;hl=lt&amp;gl=LT} }      29 { set url {in&amp;hl=en-IN&amp;gl=IN} }      30 { set url {hu_hu&amp;hl=hu&amp;gl=HU} }      31 { set url {es_ar&amp;hl=es-419&amp;gl=AR} }      32 { set url {id_id&amp;hl=id&amp;gl=ID} }      33 { set url {en_my&amp;hl=en-MY&amp;gl=MY} }      34 { set url {bn_bd&amp;hl=bn&amp;gl=BD} }      35 { set url {es_mx&amp;hl=es-419&amp;gl=MX} }      36 { set url {en_pk&amp;hl=en&amp;gl=PK} }      default { set url {us&amp;hl=en&amp;gl=US} }   }   return ${::googlelink}?ned=$url}proc news_refresh type {   foreach chan [channels] newsbind [binds time] {      if {([lsearch -exact [channel info $chan] "+googlenews"] != "-1") &amp;&amp; ![string match "*Google:News*" $newsbind]} {         bind time - "*" Google:News         return 1      }   }}proc news_control {nick uhost hand chan text} {   switch -nocase -- [lindex [split $text] 0] {      "on" { if {[channel get $chan googlenews]} {            puthelp "privmsg $chan :News already running @ $chan"         } {            bind time - "*" Google:News            channel set $chan +googlenews            puthelp "privmsg $chan :News now enabled @ $chan"         }      }      "off" { if {![channel get $chan googlenews]} {            puthelp "privmsg $chan :News already disabled @ $chan"         } {            unbind time - "*" Google:News            channel set $chan -googlenews            puthelp "privmsg $chan :News now stopped @ $chan"         }      }      default { puthelp "privmsg $chan :Usage: $::lastbind &lt;on/off&gt;" }   }   return 0}proc getit url {   ::httpsregister   if {[catch {set token [http::geturl $url -binary 1 -timeout 15000]} error]} {      putcmdlog "[string map [list \n " "] $error]"     ::httpsunregister      return 0   } elseif {[string match *[http::ncode $token]* "307|303|302|301"]} {      upvar #0 $token state      if {[dict exists $state(meta) Location]} {         set newurl [dict get $state(meta) Location]         ::http::cleanup $token         if {[catch {set newtok [http::geturl $newurl -binary 1 -timeout 15000]} err]} {            putcmdlog "[string map [list \n " "] $err]"         ::httpsunregister            return 0         } elseif {[http::status $newtok] eq "ok" &amp;&amp; [http::ncode $newtok] == "200"} {            set data [http::data $newtok]            ::http::cleanup $newtok         } else {            putcmdlog "[http::status $newtok] - [http::code $newtok]"            ::http::cleanup $newtok         }      }      ::http::cleanup $token   } elseif {[http::status $token] eq "ok" &amp;&amp; [http::ncode $token] == "200"} {      set data [http::data $token]      ::http::cleanup $token   } else {      putcmdlog "[http::status $token] - [http::code $token]"      ::http::cleanup $token   }   ::httpsunregister   if {[info exists data]} {      return [encoding convertfrom utf-8 $data]   }}proc newsdom {} {   set document [dom parse [getit [langSel]]]   set root [$document documentElement]   foreach id [$root selectNodes "/rss/channel/item"] {      set description [[$id selectNodes "description"] text]      set pubDate [[$id selectNodes "pubDate"] text]      set newsurl [[$id selectNodes "link"] text]      lappend news "[dom_trim $description] | [dom_trim $newsurl] | [clock scan [dom_trim $pubDate]]"   }   $document delete   set listnews [lindex [lsort -integer -decreasing -index end $news] 0]   return [join [htmlparse::mapEscapes $listnews]]}proc news_print {where what} {   regexp {^(.*?)(http(?:s|)://[^\s]+)(.*?)$} $what - res links _   set output [textutil::split::splitn $what $::newsmax]   if {[string match *${links}* $output]} {      lmap newsout $output { puthelp "privmsg $where :$newsout" }   } else {      lmap newsout [textutil::split::splitn $what [string length $res]] { puthelp "privmsg $where :$newsout" }   }}proc dom_trim str {   regsub -all -nocase {(?:&lt;strong&gt;|&lt;/strong&gt;|&lt;b&gt;|&lt;/b&gt;)} $str \002 str   regsub -all -- {&lt;font color="#6f6f6f"&gt;(.*?)&lt;/font&gt;} $str "(\00304\\1\003)" str   set str [string map [list &amp;lt\; \u003c &amp;gt\; \u003e &amp;nbsp\; \u0020 \" \u0027] $str]   regsub -all -- "&lt;.+?&gt;" $str { } str   regsub -all -- {\s+} $str \u0020 str   set str [string map {"View Full coverage on Google News" ""} $str]   return [string trim $str]}proc news_tiny link {   set tinyurl [getit http://tinyurl.com/api-create.php?[http::formatQuery url $link]]   if {[info exists tinyurl] &amp;&amp; [string length $tinyurl]} {      return $tinyurl   } else {      return $link   }}proc getRealLink RealURL {   ::httpsregister   set TokLink [http::geturl [string trim $RealURL]]   upvar #0 $TokLink state   set RealLink [dict get $state(meta) Location]   ::http::cleanup $TokLink   ::httpsunregister   if {[info exists RealLink] &amp;&amp; [string length $RealLink]} {      return $RealLink   } {      return $RealURL   }}proc Google:News args {   foreach chan [channels] {      if {[channel get $chan googlenews]} {         set news [newsdom]         set newsdesc [lindex [split $news |] 0]         set newslink [getRealLink [lindex [split $news |] end-1]]         set newstime [string trim [lindex [split $news |] end]]         #scan $newsdesc {%[^(]} headline         if {(![string match *$newslink* $::oldnews] &amp;&amp; [expr {([clock seconds] - $newstime) &lt; ($::headlinedelay * 60)}]) || ![llength $::oldnews]} {            if {$::tinyurl &lt; "1" || ![string length $::tinyurl]} {               news_print $chan "$newsdesc : $newslink ([duration [expr {[clock seconds] - $newstime}]] ago.)"            } else {               news_print $chan "$newsdesc : [news_tiny [string trim $newslink]] ([duration [expr {[clock seconds] - $newstime}]] ago.)"            }            set ::oldnews "$newsdesc $newslink"         }      }   }   return 0}putlog "ok..."</code></pre></div>i got error<div class="codebox"><p>Code: </p><pre><code>wrong # args: should be "tls::socket ?options? host port"Tcl error [Google:News]: error "syntax error" at line 1 character 0"0 &lt;--Error-- "</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13003">wixchat</a> — Sun May 07, 2023 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-05-06T06:44:49-04:00</updated>

		<published>2023-05-06T06:44:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111904#p111904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111904#p111904"/>
		<title type="html"><![CDATA[Re: error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111904#p111904"><![CDATA[
<blockquote class="uncited"><div>help, i got error<br><div class="codebox"><p>Code: </p><pre><code>wrong # args: should be "tls::socket ?options? host port"Tcl error [Google:News]: error "syntax error" at line 1 character 0"0 &lt;--Error-- "</code></pre></div></div></blockquote>pastebin the code you are using<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 06, 2023 6:44 am</p><hr />
]]></content>
	</entry>
	</feed>
