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

	<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>2008-04-07T18:20:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-04-07T18:20:49-04:00</updated>

		<published>2008-04-07T18:20:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82213#p82213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82213#p82213"/>
		<title type="html"><![CDATA[RemoveBans.tcl Problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82213#p82213"><![CDATA[
Then you'd have to modify the proc accordingly:<div class="codebox"><p>Code: </p><pre><code>proc time:removebans {min hour day month year} { foreach chan [channels] {  foreach ban [chanbans $chan] {   pushmode $chan -b [lindex $ban 0]  } }}</code></pre></div>However, have you simply tried setting the channel +dynamicbans and "ban-time 1440"? This would cause your eggdrop to automatically remove any un-needed bans whenever they get older than 24h<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Apr 07, 2008 6:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CyberWar]]></name></author>
		<updated>2008-04-07T11:23:35-04:00</updated>

		<published>2008-04-07T11:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82203#p82203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82203#p82203"/>
		<title type="html"><![CDATA[RemoveBans.tcl Problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82203#p82203"><![CDATA[
oh ok <br><br>hm then i need a script where remove all bans in 24hours. i can't find a script on egghelp.org<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9685">CyberWar</a> — Mon Apr 07, 2008 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-04-07T11:10:52-04:00</updated>

		<published>2008-04-07T11:10:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82202#p82202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82202#p82202"/>
		<title type="html"><![CDATA[RemoveBans.tcl Problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82202#p82202"><![CDATA[
First off, your time binding is incorrect. It seems to try and match whenever it's the first day in the month (which, if had been done properly, would cause the script to be triggered once every minute for the whole day, and doing nothing the rest of the month). However, "minute", "hour", "day", "month" are always 2 characters long, and zero-padded when necessary, and "year" is always 4 characters long.<br><br>Use something like this for your binding instead:<div class="codebox"><p>Code: </p><pre><code>#Reset bans at 7am every morningbind time - "00 07 *" time:removebans</code></pre></div>Next, calling resetbans will not remove all bans, but only bans not managed by your eggdrop. The description in the script might be somewhat misleading.<blockquote class="uncited"><div>  resetbans &lt;channel&gt;<br>    Description: removes all bans on the channel that aren't in the bot's<br>      ban list and refreshes any bans that should be on the channel but<br>      aren't<br>    Returns: nothing<br>    Module: irc</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Apr 07, 2008 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CyberWar]]></name></author>
		<updated>2008-04-07T10:52:31-04:00</updated>

		<published>2008-04-07T10:52:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82201#p82201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82201#p82201"/>
		<title type="html"><![CDATA[RemoveBans.tcl Problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82201#p82201"><![CDATA[
Hi all i've tested this Script. But this one does not work, i've set the timer for removing bans all 24Hours, but he dont remove ban's. Whats wrong?<br><div class="codebox"><p>Code: </p><pre><code>#  RemoveBans.tcl by Nils Ostbjerg &lt;shorty@business.auc.dk&gt;#  (C) Copyright (2001)##  This script makes the bot remove all bans set on channel once every #  15 minutes. Edid the time bind below to change fequency.##  This version of the RemoveBans script is tested on Eggdrop version#  1.6.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.6.0 - 01 Nov 2001  First version, should work ok. #                                  - Nils Ostbjerg &lt;shorty@business.auc.dk&gt;bind time - "* * 1 * *" time:removebans########################################################################### time:RemoveBans start                                                  ###########################################################################proc time:removebans {min hour day month year} {    foreach chan [channels] {resetbans $chan    }    }########################################################################### time:RemoveBans end                                                    ###################################################################################################################################################### putlog                                                                 ###########################################################################putlog "Loaded RemoveBans (DLF)"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9685">CyberWar</a> — Mon Apr 07, 2008 10:52 am</p><hr />
]]></content>
	</entry>
	</feed>
