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

	<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>2002-09-15T17:09:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-15T17:09:15-04:00</updated>

		<published>2002-09-15T17:09:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10939#p10939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10939#p10939"/>
		<title type="html"><![CDATA[unban.tcl - scrip idea]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10939#p10939"><![CDATA[
It's amazing, another user is looking for a script just like this.<br><br>As I replied in the other post, you can finish this script easily. To get the ban list, use chanbans. To count it, use llength. To unban the oldest Z entries, sort the ban list with lsort (according to age) and use a for loop to unban the old entries with putserv or killchanban.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Sep 15, 2002 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-04T18:01:23-04:00</updated>

		<published>2002-09-04T18:01:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10473#p10473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10473#p10473"/>
		<title type="html"><![CDATA[unban.tcl - scrip idea]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10473#p10473"><![CDATA[
Hello!<br>I'm on many nets, and I mainly deal with bots which keep huge channels clean of spam, as you have surely noticed spam bots are fast, and sometimes when they get banned they can get nick list and send spam. That's why I want channel bans to be active as long as possible, .set ban-time isn't a solution because channel usage is different in the morning and at night etc etc. <br>- How would unban.tcl work? <br><br>Unban.tcl would make bot scan channel ban list every "X" mins and if channel bans reached "Y" it would take off the oldest "Z" bans. So, for example a bot on DALnet could have settings like X - 5, Y - 95, Z - 5, so bot would scan channel ban list every 5 mins and if it reached 95 channel bans it would take off 5 the oldest channel bans. <br><br>Thanks in advance.<br>this is beginning I've stuck I don't know how to make bot count bans, and then if bans reach max value checking which ones are the oldest and unbainng Z bans.<br>#bleh<br>set bancheckt "5"<br>set maxbans "95"<br>set removebans "5"<br>set banchannel "#channel"<br># code<br>if {![info exists banchecktimer_running]} {  <br>    timer $bancheckt banchecktimer                    <br>    set banchecktimer_running 1              <br>  }      <br><br>proc banchecktimer { } {<br>foreach bansentry [chanbans $banchannel] {<br>} <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Wed Sep 04, 2002 6:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
