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

	<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-02T07:32:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-10-02T07:32:55-04:00</updated>

		<published>2003-10-02T07:32:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27828#p27828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27828#p27828"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27828#p27828"><![CDATA[
Thx it works fine and very fast <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> i had set the limit to 15 :p<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Thu Oct 02, 2003 7:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dun_dacil]]></name></author>
		<updated>2003-10-01T17:04:47-04:00</updated>

		<published>2003-10-01T17:04:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27812#p27812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27812#p27812"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27812#p27812"><![CDATA[
Rusher,<br><br>I posted the little hack in this thread, on Sunday <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Here it is again, for your convenience:<br><br>This is the hack: edit mod/server.mod/server.c<br>locate: /* Send upto 4 msgs to server if the *critical queue* has anything in it */<br>Two lines down, there is the line:<br>while (modeq.head &amp;&amp; (burst &lt; 4) &amp;&amp; ((last_time - now) &lt; MAXPENALTY)) {<br><br>Change the "4" to whatever you need, save, recompile. <br><br><br>"4" is the (max) number of things which are sent quickly to the server, if they are in the putquick queue: after this magic number (4), even if the things are queued in the putquick queue, they are sent more slowly (like they were on the putserv queue, basically): so, change that 4 to match whatever suits you, according to the tcl you need to speed up, but be awareof the caveats we mentioned in this thread.<br><br>dun_dacil<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1864">dun_dacil</a> — Wed Oct 01, 2003 5:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-10-01T09:34:51-04:00</updated>

		<published>2003-10-01T09:34:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27795#p27795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27795#p27795"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27795#p27795"><![CDATA[
<blockquote class="uncited"><div>....the hack I gave you ....</div></blockquote>Where can I get it ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Wed Oct 01, 2003 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dun_dacil]]></name></author>
		<updated>2003-10-01T03:49:48-04:00</updated>

		<published>2003-10-01T03:49:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27784#p27784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27784#p27784"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27784#p27784"><![CDATA[
Rusher,<br><br>The irc protocol is, believe it or not, a small traffic protocol: I have a couple of very busy channel, and the *daily* traffic is order of only a few MB - tiny on modern standards.<br><br>The irc servers (and protocol) came around when band was much less than these days, and the software does check for people sending too much stuff to the server - triggering anti flood mechanisms.<br><br>If you send too much text too quickly to the server, the server will disconnect  you with "MaxSendQ exceeded" error message, or similar error messages.<br><br>ircd triggers the flood control software when you send more than 512 byte/2 seconds: so it is ok to have a quick burst, but then you must make sure that the bot will "slow down", least the bot itself is flushed out of the server for flood. Normally, eggdrops have a built in anti flood mechanism, and this is why the egg will send 4 messages quickly, and then slow down: the hack I gave you will get around this anti flood mechanism, but it will not, obviously, circumvent the fact that the servers will kick you out if you flood them <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Kick you out of the server, mind you, not simply out of a channel.<br><br>dun_dacil<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1864">dun_dacil</a> — Wed Oct 01, 2003 3:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-09-30T09:55:28-04:00</updated>

		<published>2003-09-30T09:55:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27756#p27756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27756#p27756"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27756#p27756"><![CDATA[
sending many msgs in quick succession will likely get your bot "flooded off"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Tue Sep 30, 2003 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-09-30T09:11:22-04:00</updated>

		<published>2003-09-30T09:11:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27755#p27755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27755#p27755"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27755#p27755"><![CDATA[
why but be careful ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Tue Sep 30, 2003 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-09-29T18:51:26-04:00</updated>

		<published>2003-09-29T18:51:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27743#p27743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27743#p27743"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27743#p27743"><![CDATA[
another way to bypass the queue is putdccraw (but be careful  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> )<br><div class="codebox"><p>Code: </p><pre><code>set test "PRIVMSG someguy :blabla\n"putdccraw 0 [string length $test] $test</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Mon Sep 29, 2003 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-09-29T09:15:58-04:00</updated>

		<published>2003-09-29T09:15:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27712#p27712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27712#p27712"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27712#p27712"><![CDATA[
You have no idee to make it faster ?<br>At the beginning of the overtake the bots executes some commands like :<div class="codebox"><p>Code: </p><pre><code>proc antideop {nick host hand chan modechange victim} {global botnickif {[matchattr L |o $chan] &amp;&amp; $nick != "L" &amp;&amp; ![matchattr $hand n|n $chan] &amp;&amp; ![matchattr $hand b] &amp;&amp; $nick != $botnick &amp;&amp; $nick != $victim} {putserv "PRIVMSG L :CHANLEV $chan $nick -aomv"if {$chan != "#Test."} {putquick "PRIVMSG L :op $chan"putquick "mode $chan -o $nick"newchanban $chan *!$host John "Don't deop an op ~ 1protected by 4#sicherheit 1~ sponsored by 4#isp4p"}}if {[matchattr Q |o $chan] &amp;&amp; $nick != "Q" &amp;&amp; ![matchattr $hand n|n $chan] &amp;&amp; ![matchattr $hand b] &amp;&amp; $nick != $botnick &amp;&amp; $nick != $victim} {putserv "PRIVMSG Q :CHANLEV $chan $nick -aomv+b"putserv "PRIVMSG Q :BAN $chan *!$host"newchanban $chan *!$host John "Don't deop an op ~ 1protected by 4#sicherheit 1~ sponsored by 4#isp4p"}}</code></pre></div>i dont know what i can do  <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=3034">Rusher2K</a> — Mon Sep 29, 2003 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dun_dacil]]></name></author>
		<updated>2003-09-28T18:38:16-04:00</updated>

		<published>2003-09-28T18:38:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27691#p27691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27691#p27691"/>
		<title type="html"><![CDATA[Re: Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27691#p27691"><![CDATA[
[quote="Rusher"]How can i make this faster because need is very slow :<br><br><br><br>My guess is that the script is overall "slow", and in particular the "unban" bit.It executes a few commands quickly, and then it bogs down.<br><br>If you really need to push that many instructions through to the server (I am referring to the putquick ones), you definitely need to hack the egg code.<br><br>The way the queues are built is such that the "quick" queue is executed really quickly only as far as the first 4 things in the queue are concerned. After that, the eggdrop slows down, and treats the other things in the quick queue putting some dealy (around a couple of seconds) between each instruction. Incidentally, the -next won't speed things up: it is only used to push something at the beginning of the queue, but the time to go through the items in the queue itself will not change.<br><br>The reason for this behaviour is that the eggdrop attempts not to flood itself out of the server.<br><br>To hack the code, and change this behaviour, is fairly simple: be aware, though, that the egg could indeed flood itself out of the server if you are not careful with the tcl's you load.<br><br>This is the hack: edit   mod/server.mod/server.c<br>locate:    /* Send upto 4 msgs to server if the *critical queue* has anything in it */<br>Two lines down, there is the line:<br>while (modeq.head &amp;&amp; (burst &lt; 4) &amp;&amp; ((last_time - now) &lt; MAXPENALTY)) {<br><br>Change the "4" to whatever you need, save, recompile.<br><br>dun_dacil<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1864">dun_dacil</a> — Sun Sep 28, 2003 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-09-28T15:42:32-04:00</updated>

		<published>2003-09-28T15:42:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27683#p27683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27683#p27683"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27683#p27683"><![CDATA[
try using the -next switch with putquick<br><blockquote class="uncited"><div>putquick &lt;text&gt; [options]<br>    sends text to the server, like 'dump' (intended for direct server<br>    commands); output is queued so that you won't flood yourself off<br>    the server, using the MODE queue (should be a lot faster)<br>    options are:<br>      -next     push messages to the front of the queue<br>    returns: nothing</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sun Sep 28, 2003 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-09-28T14:49:43-04:00</updated>

		<published>2003-09-28T14:49:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27680#p27680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27680#p27680"/>
		<title type="html"><![CDATA[Faster ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27680#p27680"><![CDATA[
How can i make this faster because need is very slow :<br><br><br><div class="codebox"><p>Code: </p><pre><code>bind need -|- "*" q:needproc q:need {channel need} {    global qscript    set target ""    if {[matchattr Q |o $channel]} {        set target $qscript(qtarget)    }    if {[matchattr L |o $channel]} {        set target $qscript(ltarget)    }    if {$target==""} { return 0 }    switch -exact [string tolower $need] {        "op" {            putquick "PRIVMSG $target :OP $channel"            return 1        }        "unban" {            if {[matchattr L |o $channel]} {            putquick "PRIVMSG $target :recover $channel"            putquick "JOIN $chan"utimer 1 "putquick \"JOIN $chan\""            }            if {[matchattr Q |o $channel]} {            putquick "PRIVMSG $target :unbanall $channel"            putquick "PRIVMSG $target :deopall $channel"            putquick "JOIN $chan"            utimer 1 "putquick \"JOIN $chan\""            }            return 1        }        "invite" {            putquick "PRIVMSG $target :INVITE $channel"            putquick "JOIN $chan"            utimer 1 "putquick \"JOIN $chan\""            return 1        }    }    putquick "PRIVMSG $target :CLEARCHAN $channel"    putquick "JOIN $chan"    utimer 1 "putquick \"JOIN $chan\""    return 1}</code></pre></div>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Sun Sep 28, 2003 2:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
