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

	<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-09-23T00:03:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2007-09-23T00:03:15-04:00</updated>

		<published>2007-09-23T00:03:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76152#p76152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76152#p76152"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76152#p76152"><![CDATA[
<blockquote class="uncited"><div>Chanset enabled version:<div class="codebox"><p>Code: </p><pre><code>setudef flag countmodessetudef int maxcountmodessetudef str docountmodesbind mode -|- "% *+i*" count:modeproc count:mode {nickname hostname handle channel mode target} {  global count  if {!([channel get $channel countmodes] &amp;&amp; [isbotnick $nickname])} { return 0 }  set channel [string tolower $channel]  if {![info exists count($channel)]} {    set count($channel) 1  } else {    incr count($channel)  }  if {$count($channel) &gt;= [channel get $channel maxcountmodes]} {    pushmode $channel [channel get $channel docountmodes]  }}</code></pre></div></div></blockquote>I dont think this script works, set up settings but still nothing happened and i was wondering if it can check max mode change in mints. ex: 3:5<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Sun Sep 23, 2007 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-06-20T23:21:37-04:00</updated>

		<published>2007-06-20T23:21:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73729#p73729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73729#p73729"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73729#p73729"><![CDATA[
nml375, Sir_Fz; Thank you so much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Wed Jun 20, 2007 11:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-20T10:29:41-04:00</updated>

		<published>2007-06-20T10:29:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73715#p73715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73715#p73715"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73715#p73715"><![CDATA[
for the idx, you can use [hand2idx $handle] but for text it depends on what you want "text" to contain.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jun 20, 2007 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-20T05:05:59-04:00</updated>

		<published>2007-06-20T05:05:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73704#p73704</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73704#p73704"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73704#p73704"><![CDATA[
Assuming you've defined the variables idx and text somewhere within your code, yes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jun 20, 2007 5:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-06-19T21:17:47-04:00</updated>

		<published>2007-06-19T21:17:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73703#p73703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73703#p73703"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73703#p73703"><![CDATA[
Thank you very much everyone.<br><br>sorry one last question please. if i have a dcc procedure like<div class="codebox"><p>Code: </p><pre><code>proc dcc:test {handle idx text } {......}</code></pre></div> and i wanted to call this from the following codes, what would be the correct way.<br><div class="codebox"><p>Code: </p><pre><code>proc count:mode {nickname hostname handle channel mode target} { .......  if {$count($channel) &gt;= $count(max)} {     dcc:test $handle $idx $text &lt;---------- is this correct?  }}</code></pre></div>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Tue Jun 19, 2007 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-19T15:44:49-04:00</updated>

		<published>2007-06-19T15:44:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73691#p73691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73691#p73691"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73691#p73691"><![CDATA[
Chanset enabled version:<div class="codebox"><p>Code: </p><pre><code>setudef flag countmodessetudef int maxcountmodessetudef str docountmodesbind mode -|- "% *+i*" count:modeproc count:mode {nickname hostname handle channel mode target} {  global count  if {!([channel get $channel countmodes] &amp;&amp; [isbotnick $nickname])} { return 0 }  set channel [string tolower $channel]  if {![info exists count($channel)]} {    set count($channel) 1  } else {    incr count($channel)  }  if {$count($channel) &gt;= [channel get $channel maxcountmodes]} {    pushmode $channel [channel get $channel docountmodes]  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jun 19, 2007 3:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-06-19T12:55:26-04:00</updated>

		<published>2007-06-19T12:55:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73687#p73687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73687#p73687"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73687#p73687"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># only in lowercase, so #channel1 and not #ChannEl1.set count(channels) [list #channel1 #channel2 #channel3 #etc]set count(max)    5set count(modes) "+m"bind mode -|- "% *+i*" count:modeproc count:mode {nickname hostname handle channel mode target} {  global count  if {([lsearch -exact $count(channels) [string tolower $channel]] == -1) || ![isbotnick $nickname]} { return }  if {![info exists count($channel)]} {    set count($channel) 1  } else {    incr count($channel)  }  if {$count($channel) &gt;= $count(max)} {    pushmode $channel $count(modes)  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Jun 19, 2007 12:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-19T07:19:05-04:00</updated>

		<published>2007-06-19T07:19:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73679#p73679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73679#p73679"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73679#p73679"><![CDATA[
Keep in mind that lsearch uses case-sensitive searches, so your list of channels would have to match whatever case is used by whomever issues the mode (in this case, bot only). Same goes for the channel-speciffic counter.<br>You'd probably be better off using a chanset toggle, and using something like "string tolower" when indexing your array.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jun 19, 2007 7:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-06-19T07:07:34-04:00</updated>

		<published>2007-06-19T07:07:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73676#p73676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73676#p73676"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73676#p73676"><![CDATA[
Try:<br><div class="codebox"><p>Code: </p><pre><code>set count(channels) "[list #channel1 #channel2 #channel3 #etc]"set count(max) "5"set count(modes) "+m"bind mode -|- "% *+i*" count:modeproc count:mode {nickname hostname handle channel mode target} {  global count  if {[lsearch -exact $count(channels) $channel] == -1} { return }  if {![isbotnick $nickname]} { return }  if {$mode == "+i"} {    if {![info exists count($channel)]} {      set count($channel) "1"    } else {      incr count($channel) 1    }    if {$count($channel) &gt;= $count(max)} {      pushmode $channel $count(modes)    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 19, 2007 7:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-06-18T23:10:59-04:00</updated>

		<published>2007-06-18T23:10:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73664#p73664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73664#p73664"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73664#p73664"><![CDATA[
Hi Sir_Fz,<br><br>When first time bot sets +i mode due to floods then it should start the count. <br>thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Mon Jun 18, 2007 11:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-18T21:41:38-04:00</updated>

		<published>2007-06-18T21:41:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73661#p73661</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73661#p73661"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73661#p73661"><![CDATA[
Count since when?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jun 18, 2007 9:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-06-17T21:58:28-04:00</updated>

		<published>2007-06-17T21:58:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73629#p73629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73629#p73629"/>
		<title type="html"><![CDATA[mode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73629#p73629"><![CDATA[
Hi, i would appreciate if someone can write me a small procedure to count how many time bot has set +i mode in the channel? if count is greater than 5 then set +m mode<br><br>thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sun Jun 17, 2007 9:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
