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

	<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>2007-07-11T06:58:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BrewMaster]]></name></author>
		<updated>2007-07-11T06:58:40-04:00</updated>

		<published>2007-07-11T06:58:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74353#p74353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74353#p74353"/>
		<title type="html"><![CDATA[script to clear channel banlist when full]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74353#p74353"><![CDATA[
Thanks awyeah.  The script is working great!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9131">BrewMaster</a> — Wed Jul 11, 2007 6:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-10T20:12:12-04:00</updated>

		<published>2007-07-10T20:12:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74338#p74338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74338#p74338"/>
		<title type="html"><![CDATA[script to clear channel banlist when full]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74338#p74338"><![CDATA[
No, the script should be just fine even after you delete those two lines. Those lines just send an OPNOTICE to the channel, before they start removing bans from the banlist.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jul 10, 2007 8:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BrewMaster]]></name></author>
		<updated>2007-07-10T09:11:43-04:00</updated>

		<published>2007-07-10T09:11:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74323#p74323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74323#p74323"/>
		<title type="html"><![CDATA[script to clear channel banlist when full]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74323#p74323"><![CDATA[
Thanks awyeah.  Thats exactly what I was looking for.  I am testing it now.<br><br>I am going to delete out the lines:<div class="codebox"><p>Code: </p><pre><code>putserv "ONOTICE $chan :Channel banlist currently has $banlistmax entries. Removing the last $banlistremove bans placed."</code></pre></div>and:<div class="codebox"><p>Code: </p><pre><code>putserv "ONOTICE $chan :Channel banlist currently has $banlistmax entries. Clearing the channel banlist."</code></pre></div>If I remove those 2 lines of code, I should not have any issues correct?<br>(other than its not going to tell the ops what its doing).<br><br>Thanks for the response and recoding of the old script.<br><br>brew<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9131">BrewMaster</a> — Tue Jul 10, 2007 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-10T08:32:24-04:00</updated>

		<published>2007-07-10T08:32:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74322#p74322</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74322#p74322"/>
		<title type="html"><![CDATA[script to clear channel banlist when full]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74322#p74322"><![CDATA[
This is actually the old banlist cleaner. I edited this script recently to be free from of all kinds of bugs and errors and added new functions, like "ALL" to remove all channel bans. Here you go, it should work fine!<br><div class="codebox"><p>Code: </p><pre><code>bind join - "*" banlist:clean:on:joinbind mode - "*" banlist:clean:on:mode#Remove bans if they go over this numberset banlistmax "100"#Set the type/order in which you would like to remove the channel bans.#USAGE: [1/2/3] (1=RANDOM BANS, 2=RECENT PLACED BANS, 3=LAST PLACED BANS)#Use '1' If you want to remove bans 'randomly' from the channel's banlist.#Use '2' If you want to remove 'recent placed bans' (increasing banlist) from the channel's banlist.#Use '3' If you want to remove 'last placed bans' (decreasing banlist) from the channel's banlist.#Use '4' If you want to remove all bans placed by the bot from the channel's banlist.set banlisttype "3"#No of bans to remove 'ALL' or 'any number: 10, 50, 125'set banlistremove "30"#Minutes after bot join to check the channel for bansset banlistdelaycheck "5"proc banlist:clean:on:join {nick uhost hand chan} { global banlistdelaycheck if {[isbotnick $nick]} {  timer $banlistdelaycheck [list banlist:clean:on:mode $nick $uhost $hand $chan "+b" "on:join"]  }}proc banlist:clean:on:mode {nick uhost hand chan mode target} { global botnick banlistmax banlisttype banlistremove if {[string is integer $banlistremove] &amp;&amp; ($banlistremove &gt; $banlistmax)} { return 0 } if {[string equal "+b" $mode] &amp;&amp; [botisop $chan]} {  if {[llength [chanbans $chan]] &gt;= $banlistmax} {   if {$banlisttype == "1"} {        set banlist [chanbans $chan]    } elseif {$banlisttype == "2"} {        set banlist [lsort -index 2 -integer -increasing [chanbans $chan]]    } elseif {$banlisttype == "3"} {        set banlist [lsort -index 2 -integer -decreasing [chanbans $chan]]    } elseif {$banlisttype == "4"} {        set banlist [list]        foreach ban [chanbans $chan] {         if {[string equal -nocase "[lindex [split [lindex $ban 1] !] 0]" $botnick]} {          lappend banlist $ban          }       }    }    if {[string is integer $banlistremove]} {     set removebans [lrange $banlist 0 [expr $banlistremove - 1]]     putserv "ONOTICE $chan :Channel banlist currently has $banlistmax entries. Removing the last $banlistremove bans placed."     foreach ban $removebans {       pushmode $chan -b [lindex $ban 0]      }     flushmode $chan     return 0    } elseif {[string equal -nocase "all" $banlistremove]} {      putserv "ONOTICE $chan :Channel banlist currently has $banlistmax entries. Clearing the channel banlist."      resetbans $chan      return 0      }    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jul 10, 2007 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-07-10T01:20:27-04:00</updated>

		<published>2007-07-10T01:20:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74315#p74315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74315#p74315"/>
		<title type="html"><![CDATA[script to clear channel banlist when full]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74315#p74315"><![CDATA[
eggdrop.conf:<blockquote class="uncited"><div>#<br># dynamicbans<br>#    Only activate bans on the channel when necessary? This keeps<br>#    the channel's ban list from getting excessively long. The bot<br>#    still remembers every ban, but it only activates a ban on the<br>#    channel when it sees someone join who matches that ban.<br>#<br><br>....<br><br># Set here the maximum number of bans you want the bot to set on a channel.<br># Eggdrop will not place any more bans if this limit is reached. Undernet<br># currently allows 45 bans, IRCnet allows 30, EFnet allows 100, and DALnet<br># allows 100.<br>set max-bans 30</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jul 10, 2007 1:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BrewMaster]]></name></author>
		<updated>2007-07-10T00:41:52-04:00</updated>

		<published>2007-07-10T00:41:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74313#p74313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74313#p74313"/>
		<title type="html"><![CDATA[script to clear channel banlist when full]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74313#p74313"><![CDATA[
I am looking for a script that will clear the channel banlist before it is full.<br>I tried banlistcleaner.tcl that is onsite but it only seams to adjust the channel banlist when the bot first enters a room. When channel banlist fills up again it dont flush it.<br><br>Idealy, the script would remove X number of bans when the channel banlist reached X number of bans in it. Preventing a channel banlist from reaching the maximum channel banlist.<br>any help would be appreciated.<br><br>brew<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9131">BrewMaster</a> — Tue Jul 10, 2007 12:41 am</p><hr />
]]></content>
	</entry>
	</feed>
