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

	<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>2009-07-23T06:32:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2009-07-23T06:32:56-04:00</updated>

		<published>2009-07-23T06:32:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89632#p89632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89632#p89632"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89632#p89632"><![CDATA[
You should be able to bypass flood protection using:<br><div class="codebox"><p>Code: </p><pre><code>putdccraw 0 &lt;size_of_msg&gt; &lt;msg&gt;\n</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc putflood {arg} {  putdccraw 0 [expr [string bytelength $arg] + 1] $arg\n} </code></pre></div>or using the above<br><div class="codebox"><p>Code: </p><pre><code>putflood "string"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Jul 23, 2009 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-07-07T16:15:05-04:00</updated>

		<published>2009-07-07T16:15:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89465#p89465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89465#p89465"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89465#p89465"><![CDATA[
I just ran a test to confirm what has been said previously<br><div class="codebox"><p>Code: </p><pre><code>bind PUB - .flood pFloodproc pFlood {nick uhost hand chan text} {    set id [open flood.txt r]    set data [split [read -nonewline $id] \n]    close $id    foreach line $data {        putquick "PRIVMSG $chan :$line"    }    return 0}</code></pre></div>The content of the text file is as follows :-<br><br>this is line one<br>this is line two<br>this is line three<br>this is line four<br>this is line five<br>this is line six<br>this is line seven<br>this is line eight<br>this is line nine<br>this is line ten<br><br>The first 4 lines are output to the IRC channel pretty much immediately and the remainder every second or two.<br><br>As nml375 suggested, this may well improve using putdccraw but I would not wish to try. DALnet is fairly relaxed up to a point, then pretty draconian. I am using my Windrop (same host as my connection) for the testing.<br><br>It does beg the question, why would you wish to deliberately output many lines at once? Unless it is your intention to flood. Knowing the likely outcome, this is something that most people would wish to avoid.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Jul 07, 2009 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-07-07T15:48:31-04:00</updated>

		<published>2009-07-07T15:48:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89463#p89463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89463#p89463"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89463#p89463"><![CDATA[
puthelp, putserv, and putquick all use eggdrop's server-queue's with different priorities. All are, however, affected by eggdrop's penalty point estimation - which is used to prevent your eggdrop from flooding off.<br><br>Even if you would bypass this queue (using the putdccraw command), the irc server would still throttle your output, and in addition, possibly boot you off the network for flooding.<br><br>There are some server-software that might allow trusted clients to circumvent such flood protection. You would probably only find such features in reality in private networks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 07, 2009 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-07-07T15:31:02-04:00</updated>

		<published>2009-07-07T15:31:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89462#p89462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89462#p89462"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89462#p89462"><![CDATA[
Did you try the suggestion by raider2k ie. using putlog to output to the bot's partyline instead of to IRC. This tells you if it is server lag or server flood protection (if it now outputs to the partyline quickly) or a possible code error (if it still outputs to the partyline slowly).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Jul 07, 2009 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bierbong]]></name></author>
		<updated>2009-07-07T13:39:47-04:00</updated>

		<published>2009-07-07T13:39:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89461#p89461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89461#p89461"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89461#p89461"><![CDATA[
thx, now its a touch faster.<br>the first 4 lines are posted very fast, but than the same as above- every 2 seconds one line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>//edit: i think, it is my eggdrop <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=10674">bierbong</a> — Tue Jul 07, 2009 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-07-07T09:47:26-04:00</updated>

		<published>2009-07-07T09:47:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89459#p89459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89459#p89459"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89459#p89459"><![CDATA[
Try putquick instead of putserv, otherwise using same syntax.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Jul 07, 2009 9:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-07-06T13:40:24-04:00</updated>

		<published>2009-07-06T13:40:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89449#p89449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89449#p89449"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89449#p89449"><![CDATA[
most probably because of the ircds built-in flood protection,<br>refer to your live operators and/or check out the ircds webpage (if there is one)<br><br>you might also want to try replacing (testing purpose only!):<br><div class="codebox"><p>Code: </p><pre><code> putserv "privmsg #channel :$line"</code></pre></div>with<br><div class="codebox"><p>Code: </p><pre><code> putlog "privmsg #channel :$line"</code></pre></div>and then watch your partyline after rehashing if it comes fast or not.<br>if it does - its the ircds floodprotection, if it doesnt - code error (which i highly doubt)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Mon Jul 06, 2009 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bierbong]]></name></author>
		<updated>2009-07-06T12:54:12-04:00</updated>

		<published>2009-07-06T12:54:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89448#p89448</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89448#p89448"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89448#p89448"><![CDATA[
it is still very slow ( every 2 seconds -&gt; 1 line ). anybody knows why?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10674">bierbong</a> — Mon Jul 06, 2009 12:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bierbong]]></name></author>
		<updated>2009-07-02T10:43:04-04:00</updated>

		<published>2009-07-02T10:43:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89402#p89402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89402#p89402"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89402#p89402"><![CDATA[
thx!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10674">bierbong</a> — Thu Jul 02, 2009 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2009-07-06T16:09:54-04:00</updated>

		<published>2009-06-29T03:13:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89374#p89374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89374#p89374"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89374#p89374"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># read file once into a listset fslines [split [read [set fs [open $file2]]][close $fs] \n]# elements of the list contain lines from fileforeach line $fslines { putserv "privmsg #channel :$line"}</code></pre></div>Edit: Fixed "putserver" to "putserv"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jun 29, 2009 3:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bierbong]]></name></author>
		<updated>2009-06-29T02:07:51-04:00</updated>

		<published>2009-06-29T02:07:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89373#p89373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89373#p89373"/>
		<title type="html"><![CDATA[how to cache a text-file and write it out to a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89373#p89373"><![CDATA[
hello,<br>i have a *.txt with some lines of text. i want to parse it to a certain channel. i realized it with:<div class="codebox"><p>Code: </p><pre><code>set fs [open "$file2" r]while {![eof $fs]} {gets $fs lineif {$line == "" } { } else {putserv "PRIVMSG #xxx :$line";}}close $fs</code></pre></div>but it is very slow... is there a way to cache the lines or something?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10674">bierbong</a> — Mon Jun 29, 2009 2:07 am</p><hr />
]]></content>
	</entry>
	</feed>
