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

	<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-01-22T20:14:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SaW]]></name></author>
		<updated>2007-01-22T20:14:25-04:00</updated>

		<published>2007-01-22T20:14:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69831#p69831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69831#p69831"/>
		<title type="html"><![CDATA[Problem with &quot;LIST&quot; then channel remove..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69831#p69831"><![CDATA[
Thanks Sir_Fz it is ok.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8617">SaW</a> — Mon Jan 22, 2007 8:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-22T12:38:33-04:00</updated>

		<published>2007-01-22T12:38:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69822#p69822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69822#p69822"/>
		<title type="html"><![CDATA[Problem with &quot;LIST&quot; then channel remove..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69822#p69822"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set globalkanallar { "#uluchat" "#master" "#help" "#lobi" "#sihirli"}bind raw - "322" kanal_listeleset listzaman 1set usersayisi 8if {![string match "*kanal_listesi*" [timers]]} {   timer $listzaman kanal_listesi}proc kanal_listesi {} {   global listzaman   putserv "LIST"   timer $listzaman kanal_listesi}proc kanal_listele {from keyword arg} {   global usersayisi globalkanallar   set listekanaladi [lindex $arg 1]   set guncelsayi [lindex $arg 2]   if {[lsearch -exact $globalkanallar [string tolower $listekanaladi]] != -1} {return 0}   if {$guncelsayi &gt;= $usersayisi &amp;&amp; ![validchan $listekanaladi]} {      channel add $listekanaladi { flood-chan 10:2 }   }   if {$guncelsayi &lt; $usersayisi &amp;&amp; [validchan $listekanaladi]} {      channel remove $listekanaladi   }   return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jan 22, 2007 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-01-22T06:46:18-04:00</updated>

		<published>2007-01-22T06:46:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69813#p69813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69813#p69813"/>
		<title type="html"><![CDATA[Problem with &quot;LIST&quot; then channel remove..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69813#p69813"><![CDATA[
You should use a check to see if the channel is added.<br><br>For channel add:<br><div class="codebox"><p>Code: </p><pre><code>if {![validchan $listekanaladi]} {  channel add $listekanaladi { flood-chan 10:2 }}</code></pre></div>For channel remove:<br><div class="codebox"><p>Code: </p><pre><code>if {[validchan $listekanaladi]} {  channel remove $listekanaladi}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jan 22, 2007 6:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaW]]></name></author>
		<updated>2007-01-22T04:06:50-04:00</updated>

		<published>2007-01-22T04:06:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69811#p69811</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69811#p69811"/>
		<title type="html"><![CDATA[Problem with &quot;LIST&quot; then channel remove..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69811#p69811"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set globalkanallar {"#uluchat""#master""#help""#lobi""#sihirli"}bind raw - "322" kanal_listeleset listzaman 1set usersayisi 8if {![string match "*kanal_listesi*" [timers]]} {timer $listzaman kanal_listesi}proc kanal_listesi {} {global listzamanputserv "LIST"timer $listzaman kanal_listesireturn 1}proc kanal_listele {from keyword arg} {global usersayisi globalkanallarset listekanaladi [lindex $arg 1]set guncelsayi [lindex $arg 2]if {[lsearch -exact $globalkanallar [string tolower $listekanaladi]] != -1} {return 0}if {$guncelsayi &gt; $usersayisi} {channel add $listekanaladi { flood-chan 10:2 }}if {$guncelsayi &lt; $usersayisi} { channel remove $listekanaladi} else {return 0}}</code></pre></div>i changed codes to this.<br><br>everything is ok. But i have have a new problem :S<br><br>[10:05] (ScanX): [03:05] Tcl error [kanal_listele]: no such channel record<br>[10:05] (ScanX): [03:05] Tcl error [kanal_listele]: no such channel record<br>[10:05] (ScanX): [03:05] Tcl error [kanal_listele]: no such channel record<br>[10:05] (ScanX): [03:05] Tcl error [kanal_listele]: no such channel record<br>[10:05] (ScanX): [03:05] Tcl error [kanal_listele]: no such channel record<br>[10:05] (ScanX): [03:05] Tcl error [kanal_listele]: no such channel record<br>[10:05] (ScanX): [03:05] Tcl error [kanal_listele]: no such channel record<br><br>any idea?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8617">SaW</a> — Mon Jan 22, 2007 4:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-01-22T03:30:24-04:00</updated>

		<published>2007-01-22T03:30:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69810#p69810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69810#p69810"/>
		<title type="html"><![CDATA[Problem with &quot;LIST&quot; then channel remove..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69810#p69810"><![CDATA[
Try the following:<div class="codebox"><p>Code: </p><pre><code>$guncelsayi &gt;= $usersayisi$guncelsayi &lt;= $usersayisi</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Jan 22, 2007 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaW]]></name></author>
		<updated>2007-01-22T01:05:59-04:00</updated>

		<published>2007-01-22T01:05:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69807#p69807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69807#p69807"/>
		<title type="html"><![CDATA[Problem with &quot;LIST&quot; then channel remove..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69807#p69807"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set globalkanallar {"#uluchat""#master""#help""#lobi""#sihirli"}bind raw - "322" kanal_listeleset listzaman 1set usersayisi 8if {![string match "*kanal_listesi*" [timers]]} {timer $listzaman kanal_listesi}proc kanal_listesi {} {global listzamanputserv "LIST"timer $listzaman kanal_listesireturn 1}proc kanal_listele {from keyword arg} {global usersayisi globalkanallarset listekanaladi [lindex $arg 1]set guncelsayi [lindex $arg 2]if {![string match -nocase $listekanaladi [lrange $globalkanallar 0 end]]} {if {$guncelsayi &gt; $usersayisi} {channel add $listekanaladi}if {$guncelsayi &lt; $usersayisi} { channel remove $listekanaladi} else {return 0}}return 0}</code></pre></div>i have a problem with channel remove.. i want to bot makes List channels every 1 min then if channel users number much than 8, bot do "channel add" that chans. And if channel users number less than 8, bot do "channel remove" that chans. But i dont want if the channel on my globalkanallar list do anything.. But bot doesnt work that i want.. Bot do "channel remove " the all channels that less than 8 even on my globalkanallar list.<br>What is my mistake?<br><br>Sorry for my english..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8617">SaW</a> — Mon Jan 22, 2007 1:05 am</p><hr />
]]></content>
	</entry>
	</feed>
