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

	<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>2010-08-08T22:44:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-08T22:44:59-04:00</updated>

		<published>2010-08-08T22:44:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93819#p93819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93819#p93819"/>
		<title type="html"><![CDATA[Re: permanent internal bans vs ban-time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93819#p93819"><![CDATA[
<blockquote class="uncited"><div>...<br>However, eggdrop is ALSO removing bans that have been added directly to the channel ban list (NOT to the internal one). I would like it to NOT do this.</div></blockquote>To stop that, I believe you'll need to set ban-time to 0 .<br><blockquote class="uncited"><div>Is there any way to accomplish what i want through eggdrop itself,</div></blockquote>I don't think so.<br><br>Hopefully someone else, with a lot of experience, will comment on this too.<br><br><blockquote class="uncited"><div> or will i have to get some kind of black-list script?<br><br>cheers</div></blockquote><br><br>Play around with this:<br><div class="codebox"><p>Code: </p><pre><code>######## Config# Set the channel of bot's internal ban list, that will be examinedset chan_to_check "#yourchannel"# Set the age of ban - in seconds - that if the ban is this old, then it will be removed # from Channel ban list (not bot's internal list)set expire_time "1800"########## End Configbind time - "* * * * *"  check_bansproc check_bans {min hour day month year} {global expire_time chan_to_checkif {![botonchan $chan_to_check]} {return 0    }foreach b [chanbans $chan_to_check] {        lappend bb [lindex $b 0]     }foreach ban [banlist $chan_to_check] {if {([expr [unixtime] - [lindex $ban 3]] &gt; $expire_time) &amp;&amp;    ([lsearch -exact $bb [lindex $ban 0]] != -1)} {pushmode $chan_to_check -b [lindex $ban 0]  }  }}</code></pre></div>Hopefully, I've understood what you need.<br><br>Outline:<br>It runs once every minute.   (Not sure if this is wise - again, maybe someone else will comment )<br>It goes through the bot's internal ban list for the channel you have configured, checking each ban.  If a ban is older than the amount of time you have configured, AND if that ban also exists in the Channel's ban list, then unban it from the channel, while leaving it alone in the bot's internal ban list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Aug 08, 2010 10:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ohkine]]></name></author>
		<updated>2010-08-07T05:26:43-04:00</updated>

		<published>2010-08-07T05:26:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93800#p93800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93800#p93800"/>
		<title type="html"><![CDATA[permanent internal bans vs ban-time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93800#p93800"><![CDATA[
Hi there, i'm afraid i might know the answer to this, but i was hoping someone could clarify just to be sure:<br><br>Suppose i have the following eggdrop options set on my channel:<br><br>+dynamicbans<br>-enforcebans<br>+userbans<br>ban-time 30<br>force-expire 0<br><br>Then i have a number of 'permanent' bans in eggdrop's internal ban list, and i would like it so that eggdrop automatically removes these bans from the channel list after a period of time (30 minutes), whilst keeping them in the internal list in case the ban is triggered later. So far so good, this works fine.<br><br>However, eggdrop is ALSO removing bans that have been added directly to the channel ban list (NOT to the internal one). I would like it to NOT do this.<br><br>Is there any way to accomplish what i want through eggdrop itself, or will i have to get some kind of black-list script?<br><br>cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11086">ohkine</a> — Sat Aug 07, 2010 5:26 am</p><hr />
]]></content>
	</entry>
	</feed>
