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

	<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>2005-12-28T09:10:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-12-28T09:10:08-04:00</updated>

		<published>2005-12-28T09:10:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58748#p58748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58748#p58748"/>
		<title type="html"><![CDATA[Chanlimit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58748#p58748"><![CDATA[
Nothing is perfect demond, and nothing you've written is either. Is a brave person that poses as infallible. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><br><blockquote class="uncited"><div>&lt;Eggy&gt; [23:59] (!) timer drift -- spun 58 minutes</div></blockquote>The above was his problem; not the script.<br><br>@ ranny: <a href="http://forum.egghelp.org/viewtopic.php?t=4067&amp;highlight=drift" class="postlink">http://forum.egghelp.org/viewtopic.php? ... ight=drift</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Dec 28, 2005 9:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-28T03:30:48-04:00</updated>

		<published>2005-12-28T03:30:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58729#p58729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58729#p58729"/>
		<title type="html"><![CDATA[Chanlimit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58729#p58729"><![CDATA[
<blockquote class="uncited"><div>I must be blessed. It's been faultless for almost 5 yrs ... no error recorded to date; lucky me.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></div></blockquote>you've been blessed with pretty quiet channel; if your users' average join rate was more than 5/min, this thing wouldn't be able to cope with that since it only adjusts +l once a minute with a slack of 5<br><blockquote class="uncited"><div>The limit is adjusted only as channel numbers increase/decrease. It's short, simple and it works. Try it.</div></blockquote>it works for you, for the above reason; nevertheless, it's naively implemented and won't work well on fast-paced channels<br><br>btw that line is amusing:<div class="codebox"><p>Code: </p><pre><code>if {$currentlimit &lt; [expr $newlimit - 0] || $currentlimit &gt; [expr $newlimit + 0]} { </code></pre></div>even Tosser would have written simply:<div class="codebox"><p>Code: </p><pre><code>if {$currentlimit != $newlimit} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 28, 2005 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-12-28T02:46:32-04:00</updated>

		<published>2005-12-28T02:46:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58727#p58727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58727#p58727"/>
		<title type="html"><![CDATA[Chanlimit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58727#p58727"><![CDATA[
I must be blessed. It's been faultless for almost 5 yrs ... no error recorded to date; lucky me.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><blockquote class="uncited"><div>--&gt;Professional_Killer (~Shooter@202.142.152.3) has joined #ballarat<br>*Enfield sets channel limit to 46</div></blockquote>The limit is adjusted only as channel numbers increase/decrease. It's short, simple and it works. Try it.<br><br>Either way, beside the point. The information posted references 'timer drift' and that is the actual problem encountered, not the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Dec 28, 2005 2:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-28T01:05:55-04:00</updated>

		<published>2005-12-28T01:05:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58726#p58726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58726#p58726"/>
		<title type="html"><![CDATA[Chanlimit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58726#p58726"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>&lt;Eggy&gt; [23:59] (!) timer drift -- spun 58 minutes</div></blockquote>It appears it has nothing to do with the script. I have used that particular one since late 2000; error free to date. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>it has severe flaws, namely failing to account for channel dynamics by join/part/quit/kick and working by timer only<br><br>for correct limiter implementation (that should come as no surprise for you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">) see xchannel (SirFz's should also be properly coded by now)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 28, 2005 1:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-12-27T19:34:09-04:00</updated>

		<published>2005-12-27T19:34:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58715#p58715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58715#p58715"/>
		<title type="html"><![CDATA[Chanlimit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58715#p58715"><![CDATA[
<blockquote class="uncited"><div>&lt;Eggy&gt; [23:59] (!) timer drift -- spun 58 minutes</div></blockquote>It appears it has nothing to do with the script. I have used that particular one since late 2000; error free to date. <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=3646">Alchera</a> — Tue Dec 27, 2005 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-27T19:19:50-04:00</updated>

		<published>2005-12-27T19:19:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58713#p58713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58713#p58713"/>
		<title type="html"><![CDATA[Chanlimit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58713#p58713"><![CDATA[
Use another chanlimit script, for example slennox's.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 27, 2005 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ranny]]></name></author>
		<updated>2005-12-27T19:16:35-04:00</updated>

		<published>2005-12-27T19:16:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58711#p58711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58711#p58711"/>
		<title type="html"><![CDATA[Chanlimit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58711#p58711"><![CDATA[
Hello,<br><br> i have chanlimit.tcl<br><div class="codebox"><p>Code: </p><pre><code>#  ChanLimit.tcl by Nils Ostbjerg &lt;shorty@business.auc.dk&gt;#  (C) Copyright (1999)##  This script will limit a channel to the current number of users plus#  5 once every min.##  This version of the ChanLimit script is useable with Eggdrop version#  1.3.x##  Please report any bugs to me at shorty@business.auc.dk.#  Idea and suggestion to new features are also welcome.##                                 - Nils Ostbjerg &lt;shorty@business.auc.dk&gt;##  Version 1.3.2 - 19 Jun 2000  Made a grademargin so if the limit only #                               needs to be change by 1 then it wont get #                               changed. Thanks to Harvey for this idea.#                                 - Nils Ostbjerg &lt;shorty@business.auc.dk&gt;##  Version 1.3.1 - 30 Nov 1999  Minor cosmetic changes, so that all my #                               scripts follow the same scheme. #                                 - Nils Ostbjerg &lt;shorty@business.auc.dk&gt;##  Version 1.3.0 - 30 Mar 1999  First version and should work ok#                                 - Nils Ostbjerg &lt;shorty@business.auc.dk&gt;# ########################################################################### Binds                                                                  ###########################################################################bind time - "* * * * *" time:ChanLimit########################################################################### time:ChanLimit start                                                   ###########################################################################proc time:ChanLimit {min hour day month year} {    foreach chan [channels] {set newlimit [expr [llength [chanlist $chan]] + 5]set currentlimit [currentlimit $chan]if {$currentlimit &lt; [expr $newlimit - 0] || $currentlimit &gt; [expr $newlimit + 0]} {    putserv "mode $chan +l $newlimit"}    }    }########################################################################### time:ChanLimit end                                                     ###################################################################################################################################################### currentlimit start                                                     ###########################################################################proc currentlimit {chan} {    set currentmodes [getchanmode $chan]    if {[string match "*l*" [lindex $currentmodes 0]]} {return [lindex $currentmodes end]     }    return 0}########################################################################### currentlimit end                                                       ###################################################################################################################################################### putlog                                                                 ########################################################################### putlog "Loaded ChanLimit (DLF)"</code></pre></div>and i have this error in partyline <blockquote class="uncited"><div>&lt;Eggy&gt; [23:59] (!) timer drift -- spun 58 minutes<br>&lt;Eggy&gt; [00:00] --- Wed Dec 28 2005<br>&lt;Eggy&gt; [00:00] Backing up channel file...<br>&lt;Eggy&gt; [00:00] #team: mode change '+l 94' by Eggy!~<a href="mailto:teambot@d83-180-88-184.bluewin.ch">teambot@d83-180-88-184.bluewin.ch</a><br>&lt;Eggy&gt; [00:00] #team: mode change '+l 94' by Eggy!~<a href="mailto:teambot@d83-180-88-184.bluewin.ch">teambot@d83-180-88-184.bluewin.ch</a><br>&lt;Eggy&gt; [00:00] #team: mode change '+l 94' by Eggy!~<a href="mailto:teambot@d83-180-88-184.bluewin.ch">teambot@d83-180-88-184.bluewin.ch</a><br>&lt;Eggy&gt; [00:00] #team: mode change '+l 94' by Eggy!~<a href="mailto:teambot@d83-180-88-184.bluewin.ch">teambot@d83-180-88-184.bluewin.ch</a><br>&lt;Eggy&gt; [00:00] #team: mode change '+l 94' by Eggy!~<a href="mailto:teambot@d83-180-88-184.bluewin.ch">teambot@d83-180-88-184.bluewin.ch</a><br>....<br>....</div></blockquote>And i must restart eggdrop for stop this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"><br> <br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6386">ranny</a> — Tue Dec 27, 2005 7:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
