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

	<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>2003-09-04T22:42:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-04T22:42:36-04:00</updated>

		<published>2003-09-04T22:42:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26517#p26517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26517#p26517"/>
		<title type="html"><![CDATA[Re: banlist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26517#p26517"><![CDATA[
<blockquote class="uncited"><div>Hi,<br><br>i'll appreciate if some can help me to fix the following codes, its expired the global bans and the channel bans, i wanted it to expire just "channel bans", not the global.<br><br>advance thanks</div></blockquote>You will need to delete this piece of code from the blistcheck proc then:<br><br><div class="codebox"><p>Code: </p><pre><code>foreach bansentry [banlist] {    set watchchannel #test    delban $watchchannel $bansentry}</code></pre></div>and you can also remove all occurances of 'killban' as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Sep 04, 2003 10:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2003-09-04T22:28:17-04:00</updated>

		<published>2003-09-04T22:28:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26516#p26516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26516#p26516"/>
		<title type="html"><![CDATA[banlist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26516#p26516"><![CDATA[
Hi,<br><br>i'll appreciate if some can help me to fix the following codes, its expired the global bans and the channel bans, i wanted it to expire just "channel bans", not the global.<br><br>advance thanks<br><div class="codebox"><p>Code: </p><pre><code>proc exe_timersequence { } {    set IGNITION 2    timer $IGNITION bcheck    timer $IGNITION ulcheck}exe_timersequenceproc bcheck {} {    set CK_INTERBAL1 720    set CK_INTERBAL2 360    foreach j [timers] {        if {[string compare [lindex $j 1] bcheck] == 0} {            killtimer [lindex $j 2]        }    }    blistcheck GLOBAL    foreach channame [channels] {blistcheck $channame    }    backup    save    timer $CK_INTERBAL1 bcheck    timer $CK_INTERBAL2 ulcheck}proc blistcheck {watchchannel} {    set CGLOBAL GLOBAL    if {[string compare $watchchannel $CGLOBAL] == 0 } {foreach bansentry [banlist] {    set watchchannel #test    delban $watchchannel $bansentry}    } else {foreach bansentry [banlist $watchchannel] {    delban $watchchannel $bansentry}    }   }proc delban {watchchannel bansentry} {    set EXPIRE_LIMIT 150    set NV_LIMIT  40    set NV_LIMIT2 50    set createdday [lindex $bansentry 3]    set usedday [lindex $bansentry 4]    set currnttime [unixtime]    set daylength 86400    set createdday [expr ($currnttime - $createdday)/$daylength]    set bannedperson [lindex $bansentry 0]    set bywho [lindex $bansentry 5]    set breason [lindex $bansentry 1]    if { $usedday == 0} {if { $createdday &gt; $NV_LIMIT } {    if {[isban $bannedperson] == 0} {killchanban $watchchannel $bannedpersonputlog "Okay Expired."    } else {killban $bannedpersonputlog "Okay Expired."    }    }    } else {        set usedday [expr ($currnttime - $usedday)/$daylength]        if {$usedday &gt; $EXPIRE_LIMIT } {    if {[isban $bannedperson] == 0} {killchanban $watchchannel $bannedpersonputlog "Okay Expired."    } else {killban $bannedpersonputlog "Okay Expired."    }    } elseif { ($usedday == $createdday) &amp;&amp;  ($createdday &gt; $NV_LIMIT2 ) } {        if {[isban $bannedperson] == 0} {killchanban $watchchannel $bannedpersonputlog "Okay Expired."    } else {killban $bannedpersonputlog "Okay Expired."    }    }    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Thu Sep 04, 2003 10:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
