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

	<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-03-28T12:02:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-03-28T12:02:26-04:00</updated>

		<published>2020-03-28T12:02:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108111#p108111</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108111#p108111"/>
		<title type="html"><![CDATA[[SOLVED] AllProtection 4.9b4 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108111#p108111"><![CDATA[
<blockquote class="uncited"><div>tested it and that seems to fix the issue tnx willyw</div></blockquote>It gets even better.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>While searching here,  I found where I had discussed something to do with this setting, with Sir_Fz ...  and had completely forgotten it !<br><br>That was only back in 2009 ...  so eleven years...  I don't feel too dumb for forgetting it.    heheeheheheh<br><br>smolder:<br>Glad to know that you got it going to suit you.<br>Thanks for letting us know, and what you did.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Mar 28, 2020 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smolder]]></name></author>
		<updated>2020-03-28T11:11:53-04:00</updated>

		<published>2020-03-28T11:11:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108110#p108110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108110#p108110"/>
		<title type="html"><![CDATA[[SOLVED] AllProtection 4.9b4 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108110#p108110"><![CDATA[
I was bit busy IRL so couldn't get a chance to reply.<br>Anyway, yesterday I was looking the code and noticed something.<br>( from line# 2450 to 2462)<div class="codebox"><p>Code: </p><pre><code>proc kb {nl c km bty bti klm kty kti wm} {    set cc 0    foreach {jn ju} $nl {        _b $jn $ju $c $km $bty $bti arb [_k $jn $c $km $bti]    }}proc bk {nl c km bty bti klm kty kti wm} {    set cc 0    foreach {jn ju} $nl {        _k $jn $c $km $bti [_b $jn $ju $c $km $bty $bti arb]    }}</code></pre></div>So I just simply changed the above code to:<br><div class="codebox"><p>Code: </p><pre><code>proc bk {nl c km bty bti klm kty kti wm} {    set cc 0    foreach {jn ju} $nl {        _b $jn $ju $c $km $bty $bti arb [_k $jn $c $km $bti]    }}proc kb {nl c km bty bti klm kty kti wm} {    set cc 0    foreach {jn ju} $nl {        _k $jn $c $km $bti [_b $jn $ju $c $km $bty $bti arb]    }}</code></pre></div>And it  worked for me.<br><br>Then I also tried willyw's solution without changing the code and it also worked like a charm.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>@ willyw: <blockquote class="uncited"><div>##[ ALL PROTECTION 4.9b4 ]#<br>(Is that a typo in your first post? )</div></blockquote>Yes indeed it was typo, I have corrected it now. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>@ simo:<blockquote class="uncited"><div>i believe thats because pushmode is used for setting bans wich has a built in delay in eggddrop that might explain why it always executes kicks first</div></blockquote>I haven't checked the whole code but it seems like the script used putquick for bans and pushmode is used for unbans.<br><br>Thank you willyw &amp; simo for replying and for your time. <br>Stay save guys.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12550">smolder</a> — Sat Mar 28, 2020 11:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-03-28T10:37:10-04:00</updated>

		<published>2020-03-28T10:37:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108109#p108109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108109#p108109"/>
		<title type="html"><![CDATA[[SOLVED] AllProtection 4.9b4 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108109#p108109"><![CDATA[
tested it and that seems to fix the issue tnx willyw<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Mar 28, 2020 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-03-28T01:09:48-04:00</updated>

		<published>2020-03-28T01:09:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108108#p108108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108108#p108108"/>
		<title type="html"><![CDATA[Re: AllProtection v4.b94 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108108#p108108"><![CDATA[
You caused me to go find mine and mess with it.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Mine does ban first, then kick.  Then I realized it is an older version that does not have     bk    as an option.<br><br>So, I went and got <br>##[ ALL PROTECTION 4.9b4 ]#  <br>(Is that a typo in your first post? )<br>and looked at it some.<br><br>To my eye, in the code, it looks like they are backwards.  That kb will ban first, then kick -  and bk  will kick first, then ban.<br><br>First experiments - they both kicked first, then banned.   Just what you said.<br><br>So I stared at the code a while longer, and finally spotted something.  It was right in the config !<br><br>Find this:<div class="codebox"><p>Code: </p><pre><code># Do you want your bot to queue bans? set here the time in seconds before dumping bans:# NOTE: 0 means the bot will set the ban immediately# The modes-per-line setting in eggdrop.conf is the number of modes allowed per command.set apqueue(time) 1</code></pre></div>and set it to zero.   <br><br>Then experiment some more. <br>For me, that did it.  It would ban, then kick.<br>And !     it still looks backwards to me in the code... but it's not.   Put it on bk if you want it to ban first.    You'll see... experiment with both.<br><br>I hope this helps.      <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Mar 28, 2020 1:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-03-26T14:04:54-04:00</updated>

		<published>2020-03-26T14:04:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108106#p108106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108106#p108106"/>
		<title type="html"><![CDATA[[SOLVED] AllProtection 4.9b4 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108106#p108106"><![CDATA[
i believe thats because pushmode is used for setting bans wich has a built in delay in eggddrop that might explain  why it always executes kicks first<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Mar 26, 2020 2:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smolder]]></name></author>
		<updated>2020-03-26T06:29:15-04:00</updated>

		<published>2020-03-26T06:29:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108105#p108105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108105#p108105"/>
		<title type="html"><![CDATA[Re: AllProtection v4.b94 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108105#p108105"><![CDATA[
Already been there, done that but no luck. <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=12550">smolder</a> — Thu Mar 26, 2020 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-03-24T23:50:46-04:00</updated>

		<published>2020-03-24T23:50:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108095#p108095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108095#p108095"/>
		<title type="html"><![CDATA[Re: AllProtection v4.b94 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108095#p108095"><![CDATA[
Oh my !<br><br>No, I didn't mean it that way.  I just wanted to be sure that you knew the thread was there.<br><br>I hadn't checked, and didn't realize that the question had been asked there, and not answered.  <br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>I wonder if the forum's Search could help you?   You might want to mess around with it some.<br><br>If you determine that the question has never been answered,   look in that thread for links to the author's website.  Maybe on it you will find contact info for him.  ... Just a thought...<br><br>Best of luck with it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Mar 24, 2020 11:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smolder]]></name></author>
		<updated>2020-03-24T23:15:33-04:00</updated>

		<published>2020-03-24T23:15:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108094#p108094</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108094#p108094"/>
		<title type="html"><![CDATA[Re: AllProtection v4.b94 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108094#p108094"><![CDATA[
Yes, I have read few pages of this thread  but haven't found  the solution.<br>Also,  m4s have posted the same question on Jul 01, 2017 on same thread (Page 90) but haven't got the response. <br>Seems like I must read all 90 pages of this thread.<br>Wish me good luck. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12550">smolder</a> — Tue Mar 24, 2020 11:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-03-24T21:52:16-04:00</updated>

		<published>2020-03-24T21:52:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108093#p108093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108093#p108093"/>
		<title type="html"><![CDATA[Re: AllProtection v4.b94 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108093#p108093"><![CDATA[
<blockquote class="uncited"><div>I am using eggdrop 1.8.4 with AllProtection v4.b94 <br>...</div></blockquote>I just want to be sure that you know that there is a long thread just for AP, found here:<br><a href="http://forum.egghelp.org/viewtopic.php?t=9721&amp;start=1335" class="postlink">http://forum.egghelp.org/viewtopic.php? ... start=1335</a><br><br>and the author makes posts in it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Mar 24, 2020 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smolder]]></name></author>
		<updated>2020-03-28T11:12:32-04:00</updated>

		<published>2020-03-24T19:25:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108092#p108092</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108092#p108092"/>
		<title type="html"><![CDATA[[SOLVED] AllProtection 4.9b4 banned kick issue.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108092#p108092"><![CDATA[
I am using eggdrop 1.8.4 with AllProtection 4.9b4 and having a punishment method issue.<br><br>I have enabled the Caps lock protection. <div class="codebox"><p>Code: </p><pre><code>.chanset #mychannel ap:caps 25:10 10 w:bk 2</code></pre></div>The punishment method is  set to: <strong class="text-strong">w:bk</strong><br><br>But when caps lock protection triggered my bot acts as <strong class="text-strong"><span style="color:red">w:kb</span></strong><br><blockquote class="uncited"><div>[03:35] (Test-user) THIS IS CAPS LOCK PROTECTION TEST 1.<br>[03:35] (My-Bot) Warning: turn off your caps lock or you will be banned.<br>[03:35] (Test-user) THIS IS CAPS LOCK PROTECTION TES 2..<br>[03:35] ** Test-user has been kicked by My-Bot ( turn your caps lock off please. Banned  10 minutes - Kick  -11- )<br>[03:35] ** My-Bot sets mode(s) +b  *!*@12.34.56.789</div></blockquote>The bot is doing opposite,  it kicked the user first and then banned. <br>How to fix this so the bot ban first and then kick.<br>Am I missing something here?<br>P.S: I am having same issue for every protection I have enabled in AllProtection. <br>TIA.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12550">smolder</a> — Tue Mar 24, 2020 7:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
