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

	<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>2005-08-07T01:42:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sarius]]></name></author>
		<updated>2005-08-07T01:42:12-04:00</updated>

		<published>2005-08-07T01:42:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53793#p53793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53793#p53793"/>
		<title type="html"><![CDATA[Channel Limit Mod Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53793#p53793"><![CDATA[
Dude it works!<br><br>I'm such a dumbass! LOL<br><br>I forgot to change the #channel.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br><br>You're a genius!!!<br><br>Thanks again.<br><br>The reason is because I have set the bot to auto-notice everyone who joins  to type /msg botnick voiceme. When a non-clone sees that he will type it and get autovoice. Then my bot will check every minute to see if the limit needs to be increased.<br><br>Oh and cl_limit is actually that slack variable. Which is your somevar. Now if only I can figure out how to change that in irc.<br><br>Cheersss!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6559">sarius</a> — Sun Aug 07, 2005 1:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-06T21:17:19-04:00</updated>

		<published>2005-08-06T21:17:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53792#p53792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53792#p53792"/>
		<title type="html"><![CDATA[Channel Limit Mod Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53792#p53792"><![CDATA[
it's not wrong, but what's the meaning of <em class="text-italics">cl_limit</em>? normally, the chanlimit, if being enforced automatically, needs to be the number of total channel users (ops &amp; voices included) + some slack constant (usually in the 5-10 range), so calculating ops &amp; voices for that purpose dosn't really make much sense<br><br>if you are pretty new to eggdrop and Tcl, I'd suggest you stick with popular scripts by respected authors for now, without trying to patch these (they've been known to be working pretty well for quite some time now)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Aug 06, 2005 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sarius]]></name></author>
		<updated>2005-08-06T13:37:09-04:00</updated>

		<published>2005-08-06T13:37:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53774#p53774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53774#p53774"/>
		<title type="html"><![CDATA[Channel Limit Mod Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53774#p53774"><![CDATA[
Think I must have coded it wrong. Didn't work. Can you help me check if I edited it right? Thnks.<br><div class="codebox"><p>Code: </p><pre><code>proc cl_dolimit {} {  global cl_chans cl_limit cl_grace cl_timer  timer $cl_timer cl_dolimit  foreach chan [string tolower [channels]] {    if {$cl_chans != ""} {      if {[lsearch -exact [split $cl_chans] [string tolower $chan]] == -1} {continue}    }    if {![botisop $chan]} {continue}    set numops 0; set numvoices 0 foreach n [chanlist $chan] {    if [isop $n $chan] {incr numops}    if [isvoice $n $chan] {incr numvoices} }     set newlimit [expr $numops + $numvoices + $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    }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6559">sarius</a> — Sat Aug 06, 2005 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sarius]]></name></author>
		<updated>2005-08-06T11:48:56-04:00</updated>

		<published>2005-08-06T11:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53761#p53761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53761#p53761"/>
		<title type="html"><![CDATA[Channel Limit Mod Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53761#p53761"><![CDATA[
Awesome! Thanks heaps!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6559">sarius</a> — Sat Aug 06, 2005 11:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-06T11:32:38-04:00</updated>

		<published>2005-08-06T11:32:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53758#p53758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53758#p53758"/>
		<title type="html"><![CDATA[Channel Limit Mod Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53758#p53758"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set numops 0; set numvoices 0foreach n [chanlist $chan] {   if [isop $n $chan] {incr numops}   if [isvoice $n $chan] {incr numvoices}}set limit [expr $numops + $numvoices + $somevar]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Aug 06, 2005 11:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sarius]]></name></author>
		<updated>2005-08-06T09:47:55-04:00</updated>

		<published>2005-08-06T09:47:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53753#p53753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53753#p53753"/>
		<title type="html"><![CDATA[Channel Limit Mod Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53753#p53753"><![CDATA[
Hihi <br><br>I'm currently using chanlimit1.5.tcl by slennox and I think it's a fab script. But I would like to modify it a little and I need help to do it.<br><br>Basically I just want my bot to set the total channel limit to:<br>(Number of ops) + (Number of Voice) + (variable setting)<br><br>Can anyone provide some advice as to how to do this?<br><br>Thanks alot and much appreciated. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6559">sarius</a> — Sat Aug 06, 2005 9:47 am</p><hr />
]]></content>
	</entry>
	</feed>
