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

	<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>2024-07-18T09:40:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-16T09:49:33-04:00</updated>

		<published>2024-07-16T09:49:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112923#p112923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112923#p112923"/>
		<title type="html"><![CDATA[Re: timer reacts after double the set duration.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112923#p112923"><![CDATA[
Simplified version of your script:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">while {$len &gt; 0} {   incr counter 1   after [expr {$counter*4000}] [list putnow "MODE $chan -$mode $masks"]}</code></pre></div> <strong>script</strong> So if $len = 1, time will be 4s. If len = 2, time will be 8s, ....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Jul 16, 2024 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-07-16T08:13:48-04:00</updated>

		<published>2024-07-16T08:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112922#p112922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112922#p112922"/>
		<title type="html"><![CDATA[Re: timer reacts after double the set duration.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112922#p112922"><![CDATA[
here is an example of a  test:<br><blockquote class="uncited"><div><br>14:12:31 (+Simo)  : !cbx<br><br>14:12:39  @Hawk  Sets Mode on  #test  to:  -bbbb *!*@s44-wtu7-9op6-q76-wl2y.8856.7930.IP *!*@t1m-5w4-5541-9aa-i730.877.0687.IP *!*@8nz2-3klm-448-6k2-wi2.2932.754.IP *!*@f991-8f8-04z-83mz-0vh2.1549.3535.IP <br><br>14:12:43  @Hawk  Sets Mode on  #test  to:  -bbbb *!*@i4yp-fw5o-39q7-g94-67a5.632.6222.IP *!*@vj4-x36-fb92-g1eq-622.831.4177.IP *!*@42v-o2x-6x1-h3ct-089m.032.120.IP *!*@vsb-7w3-a5s-p1t4-8f8.243.6571.IP <br><br>14:12:47  @Hawk  Sets Mode on  #test  to:  -bbbb *!*@vkj-4wm-445n-c4w0-44vt.7892.696.IP *!*@805b-f6g-45i-0iy6-26v5.5367.2331.IP *!*@55o0-487o-726-c05q-48j.1556.8675.IP *!*@2fro-1zur-vr64-65w-5k2.5517.7794.IP <br><br>14:12:51  @Hawk  Sets Mode on  #test  to:  -bbbb *!*@62ms-6l2-p536-zry-9lj.260.8383.IP *!*@i9rw-5gfa-kqr-835-83dj.246.5893.IP *!*@171-s3x4-62o-6r4-880r.374.537.IP *!*@s0v-wybp-0j5-c54-2qp4.2118.816.IP <br></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Jul 16, 2024 8:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-07-18T09:40:42-04:00</updated>

		<published>2024-07-13T14:34:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112911#p112911</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112911#p112911"/>
		<title type="html"><![CDATA[timer reacts after double the set duration.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112911#p112911"><![CDATA[
greetings ive been using this test tcl to clear bans with delay but for some reason it sets after 8 seconds while the value ive used is 4 seconds i cant figure why this happens.<br><div class="codebox"><p>Code: </p><pre><code>bind pub n|- !cbx CLEAR-OLD-Bans proc CLEAR-OLD-Bans {nick host hand chan text} {   set chan2 "#test"   bind raw - 367 timed:clear:oldbans:raw2024    bind raw - 368 timed:clear:oldbans:raw2024   putnow "mode $chan2 +b"}  proc timed:clear:oldbans:raw2024 {from key text} {    global clearbans    switch -- $key {       367 {          lassign [split $text] bot chan mask        set chan [string tolower $chan]          lappend clearbans($chan) $mask }      368 {          lassign [split $text] bot chan          set chan [string tolower $chan]          unbind raw - 367 timed:clear:oldbans:raw2024          unbind raw - 368 timed:clear:oldbans:raw2024          if {![info exists clearbans($chan)]} return          set len [llength $clearbans($chan)]          set total 0          if {$len &gt; 0} {             while {$len &gt; 0} {                if {$len &gt; 6} {                   set mode [string repeat "b" 6]                   set masks [join [lrange $clearbans($chan) 0 [expr {6 - 1}]]]                   set clearbans($chan) [lrange $clearbans($chan) 6 end]                   incr len -6                   incr total 6                } else {                   set mode [string repeat "b" $len]                   set masks [join $clearbans($chan)]                   incr total $len                    set len 0                }                 incr counter 1                after [expr {$counter*4000}] [list putnow "MODE $chan -$mode $masks"]                             }          }       }    } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Jul 13, 2024 2:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
