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

	<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>2003-10-31T09:31:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-10-31T09:31:51-04:00</updated>

		<published>2003-10-31T09:31:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29245#p29245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29245#p29245"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29245#p29245"><![CDATA[
<blockquote class="uncited"><div>that means it also tried it with /</div></blockquote>okay...but saying stuff like<blockquote class="uncited"><div>the url is without <a href="http" class="postlink">http</a>:\\</div></blockquote>made me think you had no idea that backslash!=slash<br><br>Anyway...that uri (/misc/newsyoyo) is valid, so at least you should get a different error message than "Invalid URI in request"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 31, 2003 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-31T08:38:35-04:00</updated>

		<published>2003-10-31T08:38:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29240#p29240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29240#p29240"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29240#p29240"><![CDATA[
<blockquote class="uncited"><div>already tried it that way..</div></blockquote>that means it also tried it with /<p>Statistics: Posted by Guest — Fri Oct 31, 2003 8:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-10-31T06:27:03-04:00</updated>

		<published>2003-10-31T06:27:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29234#p29234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29234#p29234"/>
		<title type="html"><![CDATA[repeating...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29234#p29234"><![CDATA[
Add a SLASH in front of your URI. (not URL)<br>This is what a slash looks like: <strong class="text-strong">/</strong> (this is a backslash: <strong class="text-strong">\</strong>)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 31, 2003 6:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-31T05:55:02-04:00</updated>

		<published>2003-10-31T05:55:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29233#p29233</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29233#p29233"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29233#p29233"><![CDATA[
already tried it that way..<br>oh damn have not thought i am that unable  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by Guest — Fri Oct 31, 2003 5:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-10-31T05:26:52-04:00</updated>

		<published>2003-10-31T05:26:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29230#p29230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29230#p29230"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29230#p29230"><![CDATA[
Oh..and btw.. in case you didn't understand my post about the uri...This is the uri in your code (the bold part):<br>puts $sock "GET <strong class="text-strong">misc/newsyoyo</strong> HTTP/1.1"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 31, 2003 5:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-31T05:11:12-04:00</updated>

		<published>2003-10-31T05:11:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29228#p29228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29228#p29228"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29228#p29228"><![CDATA[
hehe ok sry :&gt;<p>Statistics: Posted by Guest — Fri Oct 31, 2003 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-10-31T04:22:27-04:00</updated>

		<published>2003-10-31T04:22:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29225#p29225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29225#p29225"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29225#p29225"><![CDATA[
Your problem is with http, not tcl. Redirect your hate.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 31, 2003 4:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-31T03:47:39-04:00</updated>

		<published>2003-10-31T03:47:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29222#p29222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29222#p29222"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29222#p29222"><![CDATA[
credits are in. just haven´t post them.<br><br>but it still wont work, the url is without <a href="http" class="postlink">http</a>:\\ <br>still the same.. i wont get the script running.<br>i hate tcl :&gt;<p>Statistics: Posted by Guest — Fri Oct 31, 2003 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-10-30T09:31:11-04:00</updated>

		<published>2003-10-30T09:31:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29190#p29190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29190#p29190"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29190#p29190"><![CDATA[
Start your uri with a slash.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 30, 2003 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-10-30T08:26:48-04:00</updated>

		<published>2003-10-30T08:26:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29189#p29189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29189#p29189"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29189#p29189"><![CDATA[
i dont work with sockets at all, but : i think you have to use <a href="http://www.infernum.com/" class="postlink">http://www.infernum.com/</a> (btw : austrian ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">)<br><br>yer TCL is based on domsens work, am i correct ? give him credits in the header<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Oct 30, 2003 8:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-30T04:03:56-04:00</updated>

		<published>2003-10-30T04:03:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29184#p29184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29184#p29184"/>
		<title type="html"><![CDATA[need help with a news script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29184#p29184"><![CDATA[
heyas out there.. i have a problem with my news script, i get the error msg: Invalid URI in request <br>i just have no idea how to fix it. plz help<br>thx in advance!<br><br><br>#cfg#<br>set inftrigger ".inf"<br>set infchans ""<br>set inflimit "5"<br>set infnewspostlimit "3"<br>set infnewspost "1"<br>set isinfhub "0"<br>set infleafs ""<br>#code#<br><br>bind msg - $inftrigger msg_inf<br>bind pub - $inftrigger pub_inf<br>bind time - "?0 * * * *" infcheck<br><br>proc sendinfnews { arg } {<br>global infleafs<br>foreach bot [bots] {<br>if {([lsearch -exact [string tolower $infleafs] [string tolower $bot]] != -1)} {<br>putbot $bot "inf: $arg"<br>}}}<br><br>proc shrink { calc number string start bl} { return [expr [string first "$string" $bl $start] $calc $number] }<br><br>proc html { text } {<br>regsub -all "ü" $text "ü" text<br>regsub -all "ö" $text "ö" text<br>regsub -all "ä" $text "ä" text<br>regsub -all "Ü" $text "Ü" text<br>regsub -all "Ö" $text "Ö" text<br>regsub -all "Ä" $text "Ä" text<br>regsub -all "ß" $text "ß" text<br>regsub -all """ $text "\"" text<br>regsub -all "&lt;" $text "&lt;" text<br>regsub -all "&gt;" $text "&gt;" text<br>return $text<br>}<br><br>proc infcheck {nick uhost hand chan arg} {<br>global infchans infnewspost isinfhub infnewspostlimit<br>set counter 0<br>if {$infnewspost == 1 } {<br>putlog "inf: suche nach neuer newsline"<br>set inflastnews "none"<br>if {[file exists inf.hdl]} {<br>set temp [open "inf.hdl" r]<br>set inflastnews "[gets $temp]"<br>if {$inflastnews == ""} { set inflastnews "none" }<br>close $temp<br>}<br>set temp [open "inf.hdl" w+]<br>if {[catch {set sock [socket <a href="http://www.infernum.com" class="postlink">www.infernum.com</a> 80] } sockerror]} {<br>putlog "error: $sockerror"<br>return 0 } else {<br>puts $sock "GET misc/newsyoyo HTTP/1.1"<br>puts $sock "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"<br>puts $sock "Host: <a href="http://www.infernum.com" class="postlink">www.infernum.com</a>"<br>puts $sock "Connection: close"<br>puts $sock ""<br>flush $sock<br>set counter 0<br>while {[eof $sock] != 1} {<br>set bl [gets $sock]<br>if {[string first "misc/" $bl] != -1} {<br>set newsline $bl<br>puts $temp "[html $bl]"<br>}}}<br>close $sock ; close $temp<br>if {$inflastnews == "none" } { putlog "inf: headlinefile created" ; return 0 }<br>set temp [open "inf.hdl" r]<br>while { [eof $temp] != 1 } {<br>set infneunews [gets $temp]<br>if {($inflastnews == $infneunews) || ($counter == $infnewspostlimit)} { close $temp;return 0 }<br>incr counter<br>foreach chan [channels] {<br>if {$infchans == "" } { putserv "privmsg $chan :(neue infernum newsline) $infneunews" }<br>if {$infchans != "" } {<br>if {([lsearch -exact [string tolower $infchans] [string tolower $chan]] != -1) || ($infchans == "")} {putserv "privmsg $chan :(neue inf newsline) $infneunews"}<br>}<br>if { $isinfhub == "1" } { sendinfnews $infneunews }<br>}}}}<br><br><br>proc infnews {target limit} {<br>if {[catch {set sock [socket <a href="http://www.infernum.com" class="postlink">www.infernum.com</a> 80] } sockerror]} {<br>putlog "error: $sockerror"<br>return 0 } else {<br>puts $sock "GET misc/newsyoyo HTTP/1.1"<br>puts $sock "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"<br>puts $sock "Host: <a href="http://www.infernum.com" class="postlink">www.infernum.com</a>"<br>puts $sock "Connection: Close"<br>puts $sock ""<br>flush $sock<br>set counter 0<br>while {[eof $sock] != 1} {<br>set bl [gets $sock]<br>if {[string first "misc/" $bl] != -1} {<br>putserv "privmsg $target :[incr counter] [html $bl]"<br>}<br>if {$counter == $limit} {close $sock ; return 0 }<br>}}}<br><br>proc msg_inf { nick uhost hand arg } { global inflimit ; infnews $nick $inflimit }<br>proc pub_inf { nick uhost hand chan arg } { global infchans inflimit ; if {([lsearch -exact [string tolower $infchans] [string tolower $chan]] != -1) || ($infchans == "")} { infnews $nick $inflimit }}<br>_____________________________________________________________<p>Statistics: Posted by Guest — Thu Oct 30, 2003 4:03 am</p><hr />
]]></content>
	</entry>
	</feed>
