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

	<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-10-19T10:29:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rix]]></name></author>
		<updated>2005-10-19T10:29:47-04:00</updated>

		<published>2005-10-19T10:29:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56711#p56711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56711#p56711"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56711#p56711"><![CDATA[
hey, you got this nice script, but there's one thing bothering me - it posts feed to channel randomly, but I want it to post only when the trigger is pulled.<br><br>already tryed demond's script but that didn't work for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6753">rix</a> — Wed Oct 19, 2005 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-10-09T17:32:53-04:00</updated>

		<published>2005-10-09T17:32:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56490#p56490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56490#p56490"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56490#p56490"><![CDATA[
my script is fundamentally different from perplexa's, it doesn't fetch feeds on user demand, it fetches feeds periodically and compares feeds contents in memory, announcing only updated headlines as necessary<br><br>naturally, it has the whole feeds contents available at all times (in memory, not in file), and it sends that content out on demand<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Oct 09, 2005 5:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SWAT]]></name></author>
		<updated>2005-10-09T17:26:10-04:00</updated>

		<published>2005-10-09T17:26:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56488#p56488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56488#p56488"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56488#p56488"><![CDATA[
I'll have a look at your script later (I can't look at any code anymore, and the other scripts is currently working). The database files are VERY handy. If you set the script for updating the text files every X minutes (for example 60 or 30) and then post the content from the textfile to the channel, the data-traffic would decrease. Because if 10 users would use the rssfeed-command in 10 minutes, the website would get 10 hits (and you'd have to wait longer, because every time the website needs to be contacted.)<br><br>Example: <br>Without DB files: 10 users in 10 minutes = 100kb traffic and waiting time is 10 seconds.<br>With DB files: 10 users in 10 minutes = 10 kb traffic and waiting time is 2 seconds.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6831">SWAT</a> — Sun Oct 09, 2005 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-10-09T17:19:05-04:00</updated>

		<published>2005-10-09T17:19:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56487#p56487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56487#p56487"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56487#p56487"><![CDATA[
there is no need of database files to compare if something in the feed has changed or not - see my rss script for example<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Oct 09, 2005 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SWAT]]></name></author>
		<updated>2005-10-09T15:20:25-04:00</updated>

		<published>2005-10-09T15:20:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56482#p56482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56482#p56482"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56482#p56482"><![CDATA[
This is my RSSnews file. It works great (with private notices and all). But I noticed that the scripts doesn't use the 'database files' anymore. It didn't create new ones and it didn't update them. Can anyone help me fix this? Below is the my 'edited' script.<br><div class="codebox"><p>Code: </p><pre><code>array unset feedset feed(3DGamers) {  URL=http://www.3dgamers.com:80/feeds/netscape/3dgamers.rss   /* The location of the news, in format http://domain.com:port/file.xml (port value is optional). */  DATABASE=scripts/dbase/rssnews/.3dgamers                     /* The file where the news are saved. */  CHANNELS=#CeTa                               /* On which channels is the feed activated? Set to ALL for all channels. */  POSTNEWS=0                                                   /* Post news if there are new ones? */  POSTLIMIT=3                                                  /* max. posted news */  PUBLIMIT=3                                                   /* How many news are posted on pub triggers? */  MSGLIMIT=3                                                  /* How many news are posted on msg triggers? */  /* Thats the design used for automated output. */  POSTLAYOUT=\00300,14\[\00309\002!\002\00300\] \00300www.\002\003093D\00300gamers\002.com \[\00309\002!\002\00300\] &lt;news&gt; \[\00309\002!\002\00300\] &lt;link&gt; \[\00309\002!\002\00300\]\003  /* And this one is for use on trigger events. */  TRIGLAYOUT=\00300,14\[\00309\002!\002\00300\] \00300www.\002\003093D\00300gamers\002.com \[\00309\002!\002\00300\] &lt;news&gt; \[\00309\002!\002\00300\] &lt;link&gt; \[\00309\002!\002\00300\]\003}## ---- End of Setup -------------------------------------------## -------------------------------------------------------------if {[package vcompare [info tclversion] 8.4] &lt; 0} {  putlog "You don't have TCL 8.4, you have to upgrade to version 8.4 or higher to use [file tail [info script]]."  return;}package require httpnamespace eval rss {  variable protect 60  variable timeout 20  variable pubbind {!news}  variable msgbind {!news}  variable v_major 4  variable v_minor 5  variable v_build 0251  variable version $v_major.$v_minor.$v_build  variable client "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"  bind PUB -|- $pubbind [namespace current]::public  bind MSG -|- $msgbind [namespace current]::private  bind TIME -|- {?0 * * * *} [namespace current]::check  namespace export public private check}proc rss::check {args} {  global feed  variable client  variable timeout  putquick "PING :[clock seconds]" -next  foreach id [array names feed] {    set url "0"    set database "0"    set channels "0"    set postnews "1"    set postlimit "3"    set publimit "3"    set msglimit "10"    set postlayout {\00314(\00307&lt;publisher&gt;\00314)\00307 &lt;news&gt; \00314&lt;\00307&lt;link&gt;\00314&gt;\003}    foreach line [split $feed($id) \n] {      regsub -all -- {/\*.*?\*/} $line {} line      regexp -nocase -- {^\s*URL=(.+?)\s*$} $line tmp url      regexp -nocase -- {^\s*DATABASE=(.+?)\s*$} $line tmp database      regexp -nocase -- {^\s*CHANNELS=(.+?)\s*$} $line tmp channels      regexp -nocase -- {^\s*POSTNEWS=(.+?)\s*$} $line tmp postnews      regexp -nocase -- {^\s*POSTLIMIT=(.+?)\s*$} $line tmp postlimit      regexp -nocase -- {^\s*PUBLIMIT=(.+?)\s*$} $line tmp publimit      regexp -nocase -- {^\s*MSGLIMIT=(.+?)\s*$} $line tmp msglimit      regexp -nocase -- {^\s*POSTLAYOUT=(.+?)\s*$} $line tmp postlayout    }    if {($url == 0) || ($database == 0) || ($channels == 0)} {      putlog "RSS: Warning: Couldn't load configuration for the \[$id\] feed."      continue    }    if {$postnews == 0} {      continue    }    if {![file isdirectory [file dirname $database]]} {      file mkdir [file dirname $database]    }    set count 0    set data {}    http::config -useragent $client    catch {http::geturl $url -command "[namespace current]::check:data {$database} {$channels} {$postlimit} {$postlayout}" -timeout [expr $timeout * 1000]}  }}proc rss::check:data {database channels postlimit postlayout token} {  upvar 0 $token state  if {![string equal -nocase $state(status) "ok"]} {    return 0  }  set latestnews "iddqd"  if {[file exists $database]} {    set temp [open $database r+]    set latestnews [gets $temp]    if {[string length $latestnews] &lt;= 1} {      set latestnews "iddqd"    }    close $temp  }  set data [http::data $token]  http::cleanup $token  set publisher [publisher $data]  set data [parse $data]  set temp [open $database w+]  set postlayout [join $postlayout { }]  foreach {item} $data {    regsub -all -- {&lt;id&gt;} $postlayout [lindex $item 0] output    regsub -all -- {&lt;publisher&gt;} $output $publisher output    regsub -all -- {&lt;link&gt;} $output [lindex $item 1] output    regsub -all -- {&lt;news&gt;} $output [lindex $item 2] output    regsub -all -- {&lt;upfirstchar\s(.*?)&gt;} [clean $output] {[upfirstchar "\1"]} output    puts $temp [decode [subst $output]]  }  close $temp  set count 0  set temp [open $database r+]  while {![eof $temp]} {    gets $temp headline    if {([string equal -nocase $latestnews $headline]) || ([string equal -nocase $latestnews "iddqd"]) || ($count == $postlimit)} {      break    }    incr count    msg $channels $headline  }  close $temp}proc rss::news {target id type} {  global feed  variable client  variable timeout  if {$type == 2} {    set msgtype PRIVMSG  } else {    set msgtype NOTICE  }  set url "0"  set publimit "3"  set msglimit "10"  set triglayout "\00314\[\00307&lt;id&gt;\00314\]\00307 &lt;news&gt; \00314&lt;\00307&lt;link&gt;\00314&gt;\003"  foreach item [split $feed($id) \n] {    regsub -all -- {/\*.*?\*/} $item {} item    regexp -nocase -- {^\s*URL=(.+?)\s*$} $item tmp url    regexp -nocase -- {^\s*PUBLIMIT=(.+?)\s*$} $item tmp publimit    regexp -nocase -- {^\s*MSGLIMIT=(.+?)\s*$} $item tmp msglimit    regexp -nocase -- {^\s*TRIGLAYOUT=(.+?)\s*$} $item tmp triglayout  }  if {($url == 0)} {    putquick "$msgtype $target :Warning: Couldn't load configuration for the \[$id\] feed."    return 0  }  if {$type == 1} {    set limit $msglimit  } elseif {$type == 2} {    set limit $publimit  } else {    return 0  }  http::config -useragent $client  catch {http::geturl $url -timeout [expr $timeout * 1000]} token  if {[regexp -nocase -- {^couldn\'t\sopen\ssocket:\s+?(.*)$} $token tmp state(status)]} {    putquick "$msgtype $target :Warning: Couldn't connect to the \[$id\] feed ($state(status))."    return 0  }  upvar 0 $token state  if {![string equal -nocase $state(status) "ok"]} {    putquick "$msgtype $target :Warning: Couldn't connect to the \[$id\] feed (connection $state(status))."    return 0  }  set data [http::data $token]  http::cleanup $token  set publisher [publisher $data]  set data [parse $data]  set count 0  set triglayout [join $triglayout { }]  foreach {item} $data {    incr count    regsub -all -- {&lt;id&gt;} $triglayout [lindex $item 0] output    regsub -all -- {&lt;publisher&gt;} $output $publisher output    regsub -all -- {&lt;link&gt;} $output [lindex $item 1] output    regsub -all -- {&lt;news&gt;} $output [lindex $item 2] output    regsub -all -- {&lt;upfirstchar\s(.*?)&gt;} [clean $output] {[upfirstchar "\1"]} output    set output [decode [subst $output]]    if {$type == 2} {      if {[regexp -- {c} [getchanmode $target]]} {        set output [stripcodes c $output]      }    }    puthelp "$msgtype $target :$output"    if {($count == $limit)} {      break    }  }}proc rss::publisher {content} {  set publisher {n/a}  regsub -all -- {\n+|\s+|\t+} $content { } content  regsub -all -- {([\\&amp;])} $content {\\\1} content  regexp -nocase -- {&lt;title&gt;(.+?)&lt;/title&gt;} $content tmp publisher  return $publisher}proc rss::parse {content} {  regsub -all -- {\n+|\s+|\t+} $content { } content  regsub -all -- {([\\&amp;])} $content {\\\1} content  set item 0  set news ""  while {[regexp -nocase -- {&lt;item(\s[^&gt;]*?)?&gt;(.+?)&lt;/item&gt;} $content -&gt; &amp; value]} {    incr item    set title {n/a}    regexp -nocase -- {&lt;title&gt;(.+?)&lt;/title&gt;} $value -&gt; title    regexp -nocase -- {\&lt;\!\[CDATA\[(.*?)\]\]\&gt;} $title -&gt; title    set link {n/a}    regexp -nocase -- {&lt;link&gt;(.+?)&lt;/link&gt;} $value -&gt; link    regexp -nocase -- {\&lt;\!\[CDATA\[(.*?)\]\]\&gt;} $link -&gt; link    regsub -nocase -- {&lt;item.*?&gt;.+?&lt;/item&gt;} $content {} content    lappend news "$item {$link} {$title}"  }  return [lsort -integer -unique -index 0 $news]}proc rss::decode {content} {  if {![regexp -- &amp; $content]} {    return $content  }  set escapes {      \x20 " \x22 &amp; \x26 &amp;apos; \x27 – \x2D &lt; \x3C &gt; \x3E ˜ \x7E € \x80 ¡ \xA1    ¢ \xA2 £ \xA3 ¤ \xA4 ¥ \xA5 ¦ \xA6 § \xA7 ¨ \xA8 © \xA9 ª \xAA « \xAB    ¬ \xAC ­ \xAD ® \xAE &amp;hibar; \xAF ° \xB0 ± \xB1 ² \xB2 ³ \xB3 ´ \xB4 µ \xB5    ¶ \xB6 · \xB7 ¸ \xB8 ¹ \xB9 º \xBA » \xBB ¼ \xBC ½ \xBD ¾ \xBE ¿ \xBF    À \xC0 Á \xC1 Â \xC2 Ã \xC3 Ä \xC4 Å \xC5 Æ \xC6 Ç \xC7 È \xC8 É \xC9    Ê \xCA Ë \xCB Ì \xCC Í \xCD Î \xCE Ï \xCF Ð \xD0 Ñ \xD1 Ò \xD2 Ó \xD3    Ô \xD4 Õ \xD5 Ö \xD6 × \xD7 Ø \xD8 Ù \xD9 Ú \xDA Û \xDB Ü \xDC Ý \xDD    Þ \xDE ß \xDF à \xE0 á \xE1 â \xE2 ã \xE3 ä \xE4 å \xE5 æ \xE6 ç \xE7    è \xE8 é \xE9 ê \xEA ë \xEB ì \xEC í \xED î \xEE ï \xEF ð \xF0 ñ \xF1    ò \xF2 ó \xF3 ô \xF4 õ \xF5 ö \xF6 ÷ \xF7 ø \xF8 ù \xF9 ú \xFA û \xFB    ü \xFC ý \xFD þ \xFE ÿ \xFF  }  set content [string map $escapes $content]  regsub -all -- {&amp;[a-zA-Z]+?;} [clean $content] {?} content  regsub -all -- {&amp;#(\d{1,3});} $content {[format %c [scan \1 %d]]} content  return [subst $content]}proc rss::private {nickname hostname handle arguments} { global feed variable spam variable protect  set arguments [clean $arguments]  set spewfeed [lindex $arguments 0]  if {![validfeed $spewfeed 1]} {    putquick "NOTICE $nickname :Please supply a valid feed: [join [lsort -dictionary [array names feed]] ",\x20"]"    return 0  }  set spewfeed [validfeed $spewfeed 2]  if {([info exists spam(flood,$spewfeed,$hostname)])} {    set s [expr [clock seconds] - $spam(flood,$spewfeed,$hostname)]    if {$s &lt; $protect} {      putquick "NOTICE $nickname :Sorry - This trigger has recently been used. It will be unlocked in [expr $protect - $s] seconds."      return 0    }  }  set spam(flood,$spewfeed,$hostname) [clock seconds]  news $nickname $spewfeed 1}proc rss::public {nickname hostname handle channel arguments} { global feed variable spam variable protect  set arguments [clean $arguments]  set spewfeed [lindex $arguments 0]  if {![validfeed $spewfeed 1]} {    putquick "NOTICE $nickname :Please supply a valid feed: [join [lsort -dictionary -unique [array names feed]] ",\x20"]"    return 0  }  set spewfeed [validfeed $spewfeed 2]  if {([info exists spam(flood,$spewfeed,$channel)]) &amp;&amp; (![isop $nickname $channel])} {    set s [expr [clock seconds] - $spam(flood,$spewfeed,$channel)]    if {$s &lt; $protect} {      putquick "NOTICE $nickname :Sorry - This trigger has recently been used. It will be unlocked in [expr $protect - $s] seconds."      return 0    }  }  set spam(flood,$spewfeed,$channel) [clock seconds]  set channels 0  foreach item [split $feed($spewfeed) \n] {    regsub -all -- {/\*.*\*/} $item {} item    regexp -nocase -- {^\s*CHANNELS=(.+?)\s*$} $item tmp channels  }  if {([lsearch -exact [string tolower $channels] [string tolower $channel]] == -1) &amp;&amp; (![string equal -nocase $channels "ALL"])} {    putquick "NOTICE $nickname :The \[$spewfeed\] feed is not available on this channel. ($channels)"    return 0  }  news $nickname $spewfeed 1}proc rss::msg {channels headline} {  if {[string equal -nocase $channels "ALL"]} {    foreach channel [channels] {      if {[regexp -- {c} [getchanmode $channel]] &amp;&amp; [regexp -- {\003} $headline]} {        lappend nocolors $channel      } else {        lappend colors $channel      }    }  } else {    foreach channel [channels] {      if {[lsearch -exact [string tolower $channels] [string tolower $channel]] &gt;= 0} {        if {[regexp -- {c} [getchanmode $channel]] &amp;&amp; [regexp -- {\003} $headline]} {          lappend nocolors $channel        } else {          lappend colors $channel        }      }    }  }  if {[info exists nocolors]} {    putquick "PRIVMSG [join $nocolors {,}] :[stripcodes c $headline]"  }  if {[info exists colors]} {    putquick "PRIVMSG [join $colors {,}] :$headline"  }}proc rss::validfeed {keyword type} { global feed  foreach id [array names feed] {    if {[string equal -nocase $id $keyword]} {      switch -exact -- $type {        {1} {          return 1        }        {2} {          return $id        }      }    }  }  return 0}proc rss::upfirstchar {content} {  regsub -all -- {((^|\s)([a-z]))} [clean $content] {[string toupper "\1"]} content  return [subst $content]}proc rss::clean {string} {  regsub -all -- {([\(\)\[\]\{\}\$\"\\])} $string {\\\1} string  return $string}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6831">SWAT</a> — Sun Oct 09, 2005 3:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[koom]]></name></author>
		<updated>2005-07-31T04:09:26-04:00</updated>

		<published>2005-07-31T04:09:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53567#p53567</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53567#p53567"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53567#p53567"><![CDATA[
Thanks for your help, i tinkered around with this<br><div class="codebox"><p>Code: </p><pre><code>  bind PUB -|- $pubbind [namespace current]::private  bind MSG -|- $msgbind [namespace current]::private</code></pre></div>and changed it back to default<br><br><div class="codebox"><p>Code: </p><pre><code>  bind PUB -|- $pubbind [namespace current]::public  bind MSG -|- $msgbind [namespace current]::private</code></pre></div>Working great now! <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=6543">koom</a> — Sun Jul 31, 2005 4:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-07-31T03:53:18-04:00</updated>

		<published>2005-07-31T03:53:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53566#p53566</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53566#p53566"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53566#p53566"><![CDATA[
recheck your configurations<br>if they are the same as what you have posted, make sure you set a source URL (and the other feed settings)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Jul 31, 2005 3:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[koom]]></name></author>
		<updated>2005-07-31T03:47:32-04:00</updated>

		<published>2005-07-31T03:47:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53565#p53565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53565#p53565"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53565#p53565"><![CDATA[
ah yes, i should've mentioned that too <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>that error just happens when i try the trigger (in this case !chat)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6543">koom</a> — Sun Jul 31, 2005 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-07-31T03:45:40-04:00</updated>

		<published>2005-07-31T03:45:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53564#p53564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53564#p53564"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53564#p53564"><![CDATA[
since I don't know what you are sending to the bot, I can't help much<br>need to know what you are inputting to get the error<br><br>maybe a little rest will help <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=4461">DragnLord</a> — Sun Jul 31, 2005 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[koom]]></name></author>
		<updated>2005-07-31T03:36:32-04:00</updated>

		<published>2005-07-31T03:36:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53563#p53563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53563#p53563"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53563#p53563"><![CDATA[
<blockquote class="uncited"><div>you missed at least half of rss::news, I don't feel so bad now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>Hehe, sorry about that, i'm not in my right state of mind atm..<br><br>Anyway, i tried what you suggested, but i received yet <strong class="text-strong">another</strong> error <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>"::17:05:: -BTC|Bot- [01:35] Tcl error [::rss::private]: wrong # args: should be "::rss::private nickname hostname handle arguments""<br><br>Thanks <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=6543">koom</a> — Sun Jul 31, 2005 3:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-07-31T03:32:58-04:00</updated>

		<published>2005-07-31T03:32:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53562#p53562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53562#p53562"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53562#p53562"><![CDATA[
you missed at least half of rss::news, I don't feel so bad now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>we'll try an easier fix for this:<div class="codebox"><p>Code: </p><pre><code>  bind PUB -|- $pubbind [namespace current]::public  bind MSG -|- $msgbind [namespace current]::private </code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>  bind PUB -|- $pubbind [namespace current]::private  bind MSG -|- $msgbind [namespace current]::private </code></pre></div>See how that works for you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Jul 31, 2005 3:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[koom]]></name></author>
		<updated>2005-07-31T03:22:20-04:00</updated>

		<published>2005-07-31T03:22:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53561#p53561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53561#p53561"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53561#p53561"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc rss::public {nickname hostname handle channel arguments} { global feed variable spam variable protect  set arguments [clean $arguments]  set spewfeed [lindex $arguments 0]  if {![validfeed $spewfeed 1]} {    putquick "PRIVMSG $channel :Please supply a valid feed: [join [lsort -dictionary -unique [array names feed]] ",\x20"]"    return 0  }  set spewfeed [validfeed $spewfeed 1]  if {([info exists spam(flood,$spewfeed,$channel)]) &amp;&amp; (![isop $nickname $channel])} {    set s [expr [clock seconds] - $spam(flood,$spewfeed,$channel)]    if {$s &lt; $protect} {      putquick "PRIVMSG $channel :Sorry - This trigger has recently been used. It will be unlocked in [expr $protect - $s] seconds."      return 0    }  }  set spam(flood,$spewfeed,$channel) [clock seconds]  set channels 0  foreach item [split $feed($spewfeed) \n] {    regsub -all -- {/\*.*\*/} $item {} item    regexp -nocase -- {^\s*CHANNELS=(.+?)\s*$} $item tmp channels  }  if {([lsearch -exact [string tolower $channels] [string tolower $channel]] == -1) &amp;&amp; (![string equal -nocase $channels "ALL"])} {    putquick "PRIVMSG $channel :The \[$spewfeed\] feed is not available on this channel. ($channels)"    return 0  }  news $nickname $spewfeed 1}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc rss::news {target id type} {  global feed  variable client  variable timeout  if {$type == 2} {    set msgtype NOTICE  } else {    set msgtype NOTICE </code></pre></div>Thanks Alot <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=6543">koom</a> — Sun Jul 31, 2005 3:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-07-31T03:14:32-04:00</updated>

		<published>2005-07-31T03:14:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53559#p53559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53559#p53559"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53559#p53559"><![CDATA[
copy&amp;paste just the rss::public and rss::news procs<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Jul 31, 2005 3:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[koom]]></name></author>
		<updated>2005-07-31T03:04:24-04:00</updated>

		<published>2005-07-31T03:04:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53558#p53558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53558#p53558"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53558#p53558"><![CDATA[
Thanks DragnLord, i just tried that, but i encounted another error..<br><br>::16:32:: -BTC|Bot- [01:02] Tcl error [::rss::public]: can't read "feed(1)": no such element in array<br><br>So i'm not too sure what to do now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6543">koom</a> — Sun Jul 31, 2005 3:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2005-07-31T02:40:04-04:00</updated>

		<published>2005-07-31T02:40:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53557#p53557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53557#p53557"/>
		<title type="html"><![CDATA[RSSNews.tcl - by perpleXa --- Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53557#p53557"><![CDATA[
yep, I'm tired...<br>try:<br>news $nickname $spewfeed 1<br><br>(the '2' makes the script check for channel modes, which a nick won't have)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Jul 31, 2005 2:40 am</p><hr />
]]></content>
	</entry>
	</feed>
