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

	<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>2020-05-25T13:00:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-25T12:11:38-04:00</updated>

		<published>2020-05-25T12:11:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108475#p108475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108475#p108475"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108475#p108475"><![CDATA[
oh excellent that seems to be working i forgot the ""  very nice indeed spike^^<br>thanx once again for the fine job you did and ceasar as well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 25, 2020 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-05-25T12:08:14-04:00</updated>

		<published>2020-05-25T12:08:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108474#p108474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108474#p108474"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108474#p108474"><![CDATA[
That's 4 arguments.<br><br>proc qkick requires 2 or 3 args...<br><br>Try:  qkick $chan $nick "testing this"<br><br>Notice the quoting!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon May 25, 2020 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-25T11:59:25-04:00</updated>

		<published>2020-05-25T11:59:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108472#p108472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108472#p108472"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108472#p108472"><![CDATA[
i tried your last posted one spike^^<br><br>with :<br><br>  qkick $chan $nick testing this<br><br><br>and it kept returning :<br><blockquote class="uncited"><div>wrong # args: should be "qkick ch ?nk? ?wy?"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 25, 2020 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-05-25T13:00:20-04:00</updated>

		<published>2020-05-25T11:39:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108471#p108471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108471#p108471"/>
		<title type="html"><![CDATA[qkick ver 0.2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108471#p108471"><![CDATA[
Caesar:<br><br>Good try caesar, but that wont use the custom reason when the proc is called by the timer...<div class="codebox"><p>Code: </p><pre><code>    utimer $qsec [list qkick $ch]</code></pre></div>Could fix that issue by making the line above look more like...<div class="codebox"><p>Code: </p><pre><code>    utimer $qsec [list qkick $ch "" $qwhy]</code></pre></div>I chose to address the custom reason issue from another direction.<br><br><br>simo:<br><br>This will use the last custom reason provided.<br>It is possible multiple scripts could be calling this process during a major flood!<div class="codebox"><p>Code: </p><pre><code>############################################################  qkick ver 0.2 by SpiKe^^ - 25 May 2020##  A possible alternative for the Eggdrop tcl command: ####          putkick &lt;channel&gt; &lt;nick,nick,...&gt; [reason]  ####  New tcl command:                                    ####          qkick &lt;channel&gt; &lt;nick,nick,...&gt; [reason]    ############################################################proc qkick {ch {nk ""} {wy ""}} {  global qkick  set qmax 10  set qsec 1  set qwhy "Go away."  if {![validchan $ch]} { return 1 }  set ch [string tolower $ch]  set nkls [split $nk ","]  if {[info exists qkick($ch)] &amp;&amp; [llength $qkick($ch)]} {    set nkls [concat $qkick($ch) $nkls]  }  if {$wy ne ""} {    set qwhy $wy    set qkick(why$ch) $wy  } elseif {[info exists qkick(why$ch)]} {    set qwhy $qkick(why$ch)  }  if {$nk eq "" || [llength $nkls]&gt;=$qmax} {    while {[llength $nkls]} {      if {[llength $nkls]&lt;$qmax &amp;&amp; $nk ne ""} { break }      if {[llength $nkls]&gt;$qmax} {        set kick [join [lreplace $nkls $qmax end] ","]        set nkls [lrange $nkls $qmax end]      } else {        set kick [join $nkls ","]        set nkls [list]      }      putserv "KICK $ch $kick :$qwhy"    }  }  if {![info exists qkick($ch)]} {    set qkick($ch) $nkls    utimer $qsec [list qkick $ch]  } elseif {$nk eq ""} {    unset qkick($ch)    catch {unset qkick(why$ch)}  } else {    set qkick($ch) $nkls  }  return 0}putlog "qkick ver 0.2 loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon May 25, 2020 11:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-05-25T09:51:10-04:00</updated>

		<published>2020-05-25T09:51:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108469#p108469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108469#p108469"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108469#p108469"><![CDATA[
That's cos the <em class="text-italics">qwhy</em> needs to be like "some reason here" (notice the ").<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 25, 2020 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-25T09:37:48-04:00</updated>

		<published>2020-05-25T09:37:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108468#p108468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108468#p108468"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108468#p108468"><![CDATA[
i tried  your suggestion caesar and it returned this error:<br><br><blockquote class="uncited"><div>wrong # args: should be "qkick ch ?nk? ?qwhy?"</div></blockquote>when i used it like this :   qkick $chan $nick .testing this<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 25, 2020 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-05-25T09:30:41-04:00</updated>

		<published>2020-05-25T09:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108466#p108466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108466#p108466"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108466#p108466"><![CDATA[
Just remove the:<div class="codebox"><p>Code: </p><pre><code>set qwhy "Go away." </code></pre></div>and replace:<div class="codebox"><p>Code: </p><pre><code>proc qkick {ch {nk ""}} {  global qkick </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>proc qkick {ch {nk ""} {qwhy "Go away."}} {  global qkick </code></pre></div>for example. If you don't give a reason the default "Go away." one will be used.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 25, 2020 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-25T08:19:28-04:00</updated>

		<published>2020-05-25T08:10:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108463#p108463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108463#p108463"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108463#p108463"><![CDATA[
tnx for the swift attempt spike i tried it and it seems to work excellently besides the kick message that cant be customized and sent from each script to the qkick proc like:<br><br><br>qkick #channel nick .reason<br><br>other than that it does exactly as desired very nice indeed do you think a custom kick reason can be added to this Spike^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 25, 2020 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-05-24T18:49:13-04:00</updated>

		<published>2020-05-24T18:49:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108458#p108458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108458#p108458"/>
		<title type="html"><![CDATA[qkick ver 0.1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108458#p108458"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>############################################################  qkick ver 0.1 by SpiKe^^ - 24 May 2020##  A possible alternative for the Eggdrop tcl command: ####          putkick &lt;channel&gt; &lt;nick,nick,...&gt; [reason]  ####  New tcl command:  qkick &lt;channel&gt; &lt;nick,nick,...&gt;   ############################################################proc qkick {ch {nk ""}} {  global qkick  set qmax 10  set qsec 1  set qwhy "Go away."  if {![validchan $ch]} { return 1 }  set ch [string tolower $ch]  set nkls [split $nk ","]  if {[info exists qkick($ch)] &amp;&amp; [llength $qkick($ch)]} {    set nkls [concat $qkick($ch) $nkls]  }  if {$nk eq "" || [llength $nkls]&gt;=$qmax} {    while {[llength $nkls]} {      if {[llength $nkls]&lt;$qmax &amp;&amp; $nk ne ""} { break }      if {[llength $nkls]&gt;$qmax} {        set kick [join [lreplace $nkls $qmax end] ","]        set nkls [lrange $nkls $qmax end]      } else {        set kick [join $nkls ","]        set nkls [list]      }      putserv "KICK $ch $kick :$qwhy"    }  }  if {![info exists qkick($ch)]} {    set qkick($ch) $nkls    utimer $qsec [list qkick $ch]  } elseif {$nk eq ""} {    unset qkick($ch)  } else {    set qkick($ch) $nkls  }  return 0}</code></pre></div>Try this untested code.<br>good luck.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun May 24, 2020 6:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-23T21:23:19-04:00</updated>

		<published>2020-05-23T21:23:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108455#p108455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108455#p108455"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108455#p108455"><![CDATA[
The idea is to have one kickstacker proc doing the stacking and pushing out as much and as fast as possible without being hindered by a long queue (possibly configurable wich the built in putkick isnt) rather then to have every script do it in few additional lines<br><br>And possibly to help it stack as quick as possible without relying too much on timers is to have it check if nicks exceed an amount of number then to temp lock chan with +RM only then to proceed and push out all stacked nicks similar as u did in the mass join tcl one<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 23, 2020 9:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-24T00:01:32-04:00</updated>

		<published>2020-05-23T03:58:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108448#p108448</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108448#p108448"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108448#p108448"><![CDATA[
That's true spike i was thinking in milliseconds (or as low as possible) for the queue to give proc enough time to stack the nicks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 23, 2020 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-05-23T03:31:20-04:00</updated>

		<published>2020-05-23T03:31:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108447#p108447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108447#p108447"/>
		<title type="html"><![CDATA['send now' vs 'hold in queue']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108447#p108447"><![CDATA[
Stacking kicks (or bans, or any other modes or messages) requires some sort of queue, to wait slightly to see if another kick is going to come next.<br><br>You can use a very short queue, so it seems to be not queued, but still requires a queue:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat May 23, 2020 3:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-25T12:38:08-04:00</updated>

		<published>2020-05-23T01:32:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108445#p108445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108445#p108445"/>
		<title type="html"><![CDATA[[Solved]Stacked kicks without queue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108445#p108445"><![CDATA[
Hey there,<br><br>I was looking at caesar's stacked kicks proc<br>From the clone kicker thread <br><div class="codebox"><p>Code: </p><pre><code>proc stackKicks {chan kicklist reason} {      set max 25      set count [llength $kicklist]      while {$count &gt; 0} {         if {$count &gt; $max} {            set users [join [lrange $kicklist 0 [expr {$max - 1}]] ","]            set kicklist [lrange $kicklist $max end]            incr count -$max         } else {            set users [join $kicklist ","]            set count 0         }         puthelp "KICK $chan $users :$reason"      }   }   </code></pre></div>Since this only accepts already stacked kicks to sort them in defined numbers i was wondering if it could be modified to take single nicks and stack them similar like putkick but without the extreme slow queue wich seems to kick in after an amount of nicks has been stacked<br><br>Thanx in advance as always.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 23, 2020 1:32 am</p><hr />
]]></content>
	</entry>
	</feed>
