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

	<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>2007-02-27T19:28:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-02-27T19:28:49-04:00</updated>

		<published>2007-02-27T19:28:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70810#p70810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70810#p70810"/>
		<title type="html"><![CDATA[probs with gbash script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70810#p70810"><![CDATA[
You have to provide complete error info (.set errorInfo).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Feb 27, 2007 7:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ladykiller]]></name></author>
		<updated>2007-02-27T18:39:17-04:00</updated>

		<published>2007-02-27T18:39:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70809#p70809</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70809#p70809"/>
		<title type="html"><![CDATA[probs with gbash script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70809#p70809"><![CDATA[
Have that Script but get this error and dont know why<br><blockquote class="uncited"><div>Tcl error [::rss::admin]: can't read "token": no such variable</div></blockquote><div class="codebox"><p>Code: </p><pre><code>## - Namespace - #namespace eval ::rss {# - Packages - ## Httppackage require http# - Settings - ## Antispam Time (In Sekunden)variable antispam "60"# Feedvariable feed http://german-bash.org/latest-quotes.xml# IDURLvariable idurl http://german-bash.org/index.php?id=%id%&amp;action=show# Style (Variablen: :title: :linkvariable style "\[\002gBash Quote\002\] \037No.\037 %id% @ \037%link%\037 (%info%)"# Zum Replacenvariable rep {&lt; &lt;&gt; &gt;}# - Setudef - ## Flag# RSSsetudef flag rss# - Binds - ## Pub# Adminbind pub nm|nm ".gbash" ::rss::admin# Time# Checkbind time -|- "13 *" ::rss::check# - Procs - ## Adminproc admin { nick host hand chan arg } {switch -- [string toupper [lindex $arg 0]] {ON { channel set $chan +rssputserv "notice $nick :\[\002RSS\002\] ist jetzt \037aktiviert\037"}OFF {channel set $chan -rssputserv "notice $nick :\[\002RSS\002\] ist jetzt \037deaktiviert\037"}STATUS {putserv "notice $nick :\[\002RSS\002\] ist immoment \037[string map {1 aktiviert 2 deaktiviert} [channel get $chan rss]]\037"}default {if {[string length $arg] &lt; 1} {putserv "privmsg $chan :\002Commands are\002 $::lastbind ON/OFF/STATUS/ID"return 0}if {[info exists ::rss::as($chan)] &amp;&amp; ($::rss::as($chan) &gt;= [unixtime])} {return 0}puthelp "notice $nick :\002Getting Quote...\002 please wait"set ::rss::as($chan) [expr [unixtime] + $::rss::antispam]::rss::getid $chan [lindex [split $arg] 0]return 1}}}# GetIDproc getid { chan id } {variable idurlset curr [string map -nocase "%id% $id" $idurl]if {[catch { set token [http::geturl $curr -timeout 10000]} error] == 1} {putlog "$error"} elseif {[http::status $token] == "ok"} {set output [http::data $token]} elseif {[http::status $token] == "timeout"} {putlog "Timeout occurred"::rss::send $chan "" $curr $id "" "Timeout"} elseif {[http::status $token] == "error"} {putlog [http::error $token]return 0}http::cleanup $tokenif {![info exists output]} { return 0 }if {[string match -nocase "*Ein Zitat mit dieser id existiert leider nicht.*" $output]} {::rss::send $chan "Ein Zitat mit dieser id existiert leider nicht." $curr $id "" "Ein Zitat mit dieser id existiert leider nicht."return 0}regexp -nocase -- {&lt;span class="date"&gt;.+?)&lt;/span&gt;} $output -&gt; dateregexp -nocase -- {&lt;span class="network"&gt;.+?)&lt;/span&gt;} $output -&gt; netset info [string trim [regsub -all -nocase -- {&lt;.+?&gt;} "$date - $net" ""]]regexp -nocase -- {&lt;div class="zitat"&gt;.+?)&lt;/div&gt;} $output -&gt; descriptionregsub -all -nocase -- {&lt;.+?&gt;} $description "" descriptionset description [string trim [string map -nocase $::rss::rep $description]]::rss::send $chan l $curr $id $info $descriptionreturn 1} # Checkproc check { args } {variable feedset curr $feedif {![info exists ::rss::last($curr)]} {set ::rss::last($curr) ""}putlog "\[\002RSS\002\] Checking \037$curr\037"if {[catch { set token [http::geturl $curr -timeout 10000]} error] == 1} {putlog "$error"} elseif {[http::status $token] == "ok"} {set output [http::data $token]} elseif {[http::status $token] == "timeout"} {putlog "Timeout occurred"} elseif {[http::status $token] == "error"} {putlog [http::error $token]return 0}http::cleanup $tokenif {![info exists output]} { return 0 }if {![regexp -nocase -- {&lt;item&gt;.*?&lt;title&gt;.+?)&lt;/title&gt;} $output -&gt; title]} {putlog "\[\002RSS\002\] Error! Nothing found at $curr"return 0}regexp -nocase -- {Zitat \#([0-9]*)\s} $title -&gt; idregsub -all -nocase -- {Zitat \#[0-9]*\s-\s} $title "" titleregsub -all -nocase -- "\n" $title "" titleif {[string equal -nocase $::rss::last($curr) $title]} {return 0}set ::rss::last($curr) $titleregexp -nocase -- {&lt;item&gt;.*?&lt;link&gt;.+?)&lt;/link&gt;.*?&lt;description&gt;.+?)&lt;/description&gt;} $output -&gt; link descriptionset description [string range $description 9 end-3]regexp -nocase -- {&lt;p&gt;.+?)&lt;/p&gt;} $description -&gt; inforegsub -all -nocase -- {&lt;p&gt;.+?&lt;/p&gt;} $description "" descriptionregsub -all -nocase -- {&lt;br /&gt;} $description "\n" descriptionset description [string map -nocase $::rss::rep $description] if {![info exists link]} { set link $curr }foreach chan [channels] {if {[channel get $chan rss]} {utimer 5 [list ::rss::send $chan $title $link $id $info $description]}}return 1}# Sendproc send { chan title link id info text } {variable styleset style [string map -nocase [list %url% $link] $style]set style [string map -nocase [list %link% $link] $style]set style [string map -nocase [list %title% $title] $style]set style [string map -nocase [list %line% $title] $style]set style [string map -nocase [list %info% $info] $style]set style [string map -nocase [list %id% $id] $style]puthelp "privmsg $chan :[join $style]"foreach line [split $text \n] {if {[string trim $line] == ""} { continue }puthelp "privmsg $chan :$line"}}putlog "\[\002RSS\002\] by \037#p0wl\037 Loaded!"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8718">Ladykiller</a> — Tue Feb 27, 2007 6:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
