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

	<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-26T11:06:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BrewMaster]]></name></author>
		<updated>2007-07-26T11:06:31-04:00</updated>

		<published>2007-07-26T11:06:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74766#p74766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74766#p74766"/>
		<title type="html"><![CDATA[Modified version of chanlimit.tcl by slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74766#p74766"><![CDATA[
Perfect awyeah...exactly what i was looking for!<br><br>(what other scripts do you have hidden under your mouse pad???)<br><br>Thanks,<br><br>brew<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9131">BrewMaster</a> — Thu Jul 26, 2007 11:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-24T11:18:45-04:00</updated>

		<published>2007-07-24T11:18:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74736#p74736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74736#p74736"/>
		<title type="html"><![CDATA[Modified version of chanlimit.tcl by slennox]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74736#p74736"><![CDATA[
Script requested by BrewMaster. Modified version of chanlimit.tcl by slennox.<br><blockquote class="uncited"><div>(*) Changed timer to utimer<br>(*) Added bind and proc for on join delay limit change for large channels</div></blockquote><div class="codebox"><p>Code: </p><pre><code>################################ ------------------------ #### 10. Channel Limit Script #### ------------------------ #################################Channels in which to activate limiting, this should be a list like#"#elephants #wildlife #etc". Leave it set to "" if you wish to activate#limiting on all channels the bot is on.set cl_chans "#awyeah"#Limit to set (number of users on the channel + this setting)set cl_limit "5"#Limit grace (if the limit doesn't need to be changed by more than this,#don't bother setting a new limit)set cl_grace "2"# Frequency of checking whether a new limit needs to be set (in seconds)set cl_utimer "8"bind join - "*" limit:chng:on:bot:joinproc limit:chng:on:bot:join {nick uhost hand chan} { global cl_chans limit_delay if {[isbotnick $nick] &amp;&amp; ([lsearch -exact [split [string tolower $cl_chans]] [string tolower $chan]] != -1)} {  set limit_delay([string tolower $chan]) 1  utimer 3 [list unset limit_delay([string tolower $chan])]  }}proc cl_dolimit {} {  global cl_chans cl_limit cl_grace cl_utimer limit_delay  utimer $cl_utimer cl_dolimit  foreach chan [string tolower [channels]] {    if {$cl_chans != ""} {     if {([lsearch -exact [split [string tolower $cl_chans]] [string tolower $chan]] == -1)} { continue }    }    if {[info exists limit_delay($chan)]} { continue }    if {![botisop $chan]} { continue }    set numusers [llength [chanlist $chan]]    set newlimit [expr $numusers + $cl_limit]    if {[string match "*l*" [lindex [getchanmode $chan] 0]]} {      set currlimit [string range [getchanmode $chan] [expr [string last " " [getchanmode $chan]] + 1] end]    } else {      set currlimit 0    }    if {$newlimit == $currlimit} { continue }    if {$newlimit &gt; $currlimit} {      set difference [expr $newlimit - $currlimit]    } elseif {$currlimit &gt; $newlimit} {      set difference [expr $currlimit - $newlimit]    }    if {$difference &lt;= $cl_grace} { continue }    putquick "MODE $chan +l $newlimit" -next    }}proc cl_startlimit {} {  global cl_utimer  if {[string match "*cl_dolimit*" [utimers]]} { return 0 }  utimer $cl_utimer cl_dolimit}cl_startlimit</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jul 24, 2007 11:18 am</p><hr />
]]></content>
	</entry>
	</feed>
