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

	<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-02-04T19:20:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-04T19:20:19-04:00</updated>

		<published>2003-02-04T19:20:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16172#p16172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16172#p16172"/>
		<title type="html"><![CDATA[Long lines get truncated with puthelp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16172#p16172"><![CDATA[
<blockquote class="uncited"><div>If putdccraw is failing too, then it's not a eggdrop issue.<br><br>The IRC server you are connected too, must impose a length restriction lower than the RFC implmentation of 510 chracters.</div></blockquote>Yes, what I observed was an IRC server limitation and not a limitation of putdccraw which indeed seems to work fine. My mistake <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> I was a bit tricked by putlog which does not seem to display the full string <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><div class="codebox"><p>Code: </p><pre><code>bind pub m !maxmsg maxmsgproc maxmsg { nick uhost hand chan text } {   for { set count 10 } { $count &lt;= 600 } { incr count 10 } {      append string [format %10s $count]   }   regsub -all -- { } $string {*} string   putlog "LENGTH STRING: [string length $string]"   set string "PRIVMSG $chan :$string\n"   set slength [string length $string]   putlog "LENGTH STRING: $slength"   putdccraw 0 $slength $string   putlog $string}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Feb 04, 2003 7:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-04T15:05:36-04:00</updated>

		<published>2003-02-04T15:05:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16165#p16165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16165#p16165"/>
		<title type="html"><![CDATA[Long lines get truncated with puthelp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16165#p16165"><![CDATA[
If putdccraw is failing too, then it's not a eggdrop issue.<br><br>The IRC server you are connected too, must impose a length restriction lower than the RFC implmentation of 510 chracters.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Feb 04, 2003 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-04T14:30:09-04:00</updated>

		<published>2003-02-04T14:30:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16159#p16159</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16159#p16159"/>
		<title type="html"><![CDATA[Long lines get truncated with puthelp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16159#p16159"><![CDATA[
I'm not sure how you tested it, but putdccraw does not impose any length restriction on the content. Neither does tputs, the network output function it uses.<br><br>Here's how you can test it:<br><br>Using tclsh, do this<br>% proc blah {args} {puts "blah: $args"}<br>% socket -server blah 1234<br><br>Then in eggdrop, do<br>.tcl connect localhost 1234<br>Tcl: 7<br>.tcl set blah [string repeat "horse" 1000]\n<br>Tcl: horsehorsehorsehorsehorsehorsehorse...<br>.tcl putdccraw 7 [string length $blah] $blah<br>Tcl:<br><br>Then back in tclsh, do<br>% update<br>blah: sock4 127.0.0.1 42027 (&lt;-- it prints this out)<br>% set test [gets sock4]<br>horsehorsehorsehorse....<br>% string length $test<br>5000<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Feb 04, 2003 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-04T14:03:39-04:00</updated>

		<published>2003-02-04T14:03:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16157#p16157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16157#p16157"/>
		<title type="html"><![CDATA[Long lines get truncated with puthelp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16157#p16157"><![CDATA[
<blockquote class="uncited"><div>Eggdrop truncates long lines because servers place restrictions on line length. Unless you have some modified ircd that allows longer lines anyway. There is probably a way around it... use putdccraw with idx 0 for the server.<br><br>set blah "this is a really long line\n"<br>putdccraw 0 [string length $blah] $blah<br><br>I think it'll work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Using putdccraw doesn't work either. I thought it was a matter of editing tclserv.c but I purged the previous posting since it is more than that. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> It seems that the actual writing to the socket also has a max length.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Feb 04, 2003 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-04T13:25:50-04:00</updated>

		<published>2003-02-04T13:25:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16154#p16154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16154#p16154"/>
		<title type="html"><![CDATA[Long lines get truncated with puthelp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16154#p16154"><![CDATA[
Eggdrop truncates long lines because servers place restrictions on line length. Unless you have some modified ircd that allows longer lines anyway. There is probably a way around it... use putdccraw with idx 0 for the server.<br><br>set blah "this is a really long line\n"<br>putdccraw 0 [string length $blah] $blah<br><br>I think it'll work :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Feb 04, 2003 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-04T08:41:15-04:00</updated>

		<published>2003-02-04T08:41:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16143#p16143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16143#p16143"/>
		<title type="html"><![CDATA[Re: Long lines get truncated with puthelp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16143#p16143"><![CDATA[
nvm. wrong answer <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=282">egghead</a> — Tue Feb 04, 2003 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-02-04T07:50:58-04:00</updated>

		<published>2003-02-04T07:50:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16140#p16140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16140#p16140"/>
		<title type="html"><![CDATA[Long lines get truncated with puthelp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16140#p16140"><![CDATA[
Having a bit of a problem with my eggdrop. When I use puthelp or putquick in my tcl-scripts, it seems the lines get truncated after appx 450 chars. Any way around this?<p>Statistics: Posted by Guest — Tue Feb 04, 2003 7:50 am</p><hr />
]]></content>
	</entry>
	</feed>
