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

	<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-05-24T10:51:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ZEXEL]]></name></author>
		<updated>2007-05-24T10:51:21-04:00</updated>

		<published>2007-05-24T10:51:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72949#p72949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72949#p72949"/>
		<title type="html"><![CDATA[Re: Thx]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72949#p72949"><![CDATA[
<blockquote class="uncited"><div>thx for help me nml375  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>ZEXEL always comment but he never help. I think ZEXEL know nothing. ZEXEL cuma banyak tanya aja tapi gak banyak membantu orang (Tong kosong and tukang komen) hahahahaha  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil"></div></blockquote>yoyoyo... Think before u post some thread, use the indent so the other can help u!<br>Read <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink"><strong class="text-strong">this</strong></a>.  Many example script in this forum use indent before they post. We have a rules for help each other. <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink"><strong class="text-strong">Help us to help u </strong></a> and don't be stupid like a ripper! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>Don't comment my self, take a look mirror who you are!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7909">ZEXEL</a> — Thu May 24, 2007 10:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[473X]]></name></author>
		<updated>2007-05-23T17:09:50-04:00</updated>

		<published>2007-05-23T17:09:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72933#p72933</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72933#p72933"/>
		<title type="html"><![CDATA[Thx]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72933#p72933"><![CDATA[
thx for help me nml375  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>ZEXEL always comment but he never help. I think ZEXEL know nothing. ZEXEL cuma banyak tanya aja tapi gak banyak membantu orang (Tong kosong and tukang komen) hahahahaha  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_twisted.gif" width="15" height="15" alt=":twisted:" title="Twisted Evil"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8987">473X</a> — Wed May 23, 2007 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-21T12:38:38-04:00</updated>

		<published>2007-05-21T12:38:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72889#p72889</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72889#p72889"/>
		<title type="html"><![CDATA[Need help with IDLE.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72889#p72889"><![CDATA[
As I bothered to dig through the code, I noticed you improperly use lindex and lrange in multiple locations, such as this piece:<div class="codebox"><p>Code: </p><pre><code>proc check_away { from keyword arg } { global chanaway set awaytext [string range [lrange $arg 2 end] 1 end] set nickaway [lindex $arg 1]</code></pre></div>Since arg is a string here, you can't use neither lindex or lrange without first converting it to a list (check the <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/split.htm" class="postlink">split</a>-command for this).<br>Also, you really should considder concatenating your conditionals, ie use if {$a &gt; 1 &amp;&amp; $ &lt; 2} { rather than nesting multiple conditionals, and you don't have to set a variable to a value such as this:<div class="codebox"><p>Code: </p><pre><code>set cekidle [getchanidle $user $chanaway]if {$cekidle &gt; $idtimer} {</code></pre></div>This works just aswell:<div class="codebox"><p>Code: </p><pre><code>if {[getchanidle $user $chanaway] &gt; $idtimer} {</code></pre></div>As for the original query, do as YooHoo suggests, the implementation should be simple as long as you read through the docs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon May 21, 2007 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-05-21T00:11:18-04:00</updated>

		<published>2007-05-21T00:11:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72878#p72878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72878#p72878"/>
		<title type="html"><![CDATA[Need help with IDLE.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72878#p72878"><![CDATA[
learn to properly indent your code, it is way to jumbled looking the way it is right now.  You need to set special chanflags, using the <strong class="text-strong">setudef</strong> command, which, like all commands, can be found in the tcl-commands.doc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon May 21, 2007 12:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZEXEL]]></name></author>
		<updated>2007-05-20T23:20:47-04:00</updated>

		<published>2007-05-20T23:20:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72876#p72876</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72876#p72876"/>
		<title type="html"><![CDATA[Need help with IDLE.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72876#p72876"><![CDATA[
Please read : <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink"><strong class="text-strong">Help us to help you</strong></a>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> before you post! Thx...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7909">ZEXEL</a> — Sun May 20, 2007 11:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[473X]]></name></author>
		<updated>2007-05-20T12:15:12-04:00</updated>

		<published>2007-05-20T12:15:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72865#p72865</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72865#p72865"/>
		<title type="html"><![CDATA[Need help with IDLE.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72865#p72865"><![CDATA[
Anyone help me please.<br>This is an idle TCL, how to make it works into all channel automatically. When I command +idle the idle detection will set ON in channel, then -idle the idle will be set OFF.<br><div class="codebox"><p>Code: </p><pre><code>## idle DetecteD ##set timetocheckaway 10set chanaway "#allchannels"set idtimer 10#######TEST#######if {![info exists {ald}]} {global botnick chanaway timetocheckawayset ald 1timer ${timetocheckaway} printing}proc printing {} {global botnick chanaway timetocheckaway idtimerputlog "Check away on $chanaway"if {[botonchan $chanaway] == 1} {if {[botisop $chanaway]==1} {foreach user [chanlist $chanaway] {if {[isbotnick $user] == 0} {if {[isop $user $chanaway]==0} {if {[isvoice $user $chanaway] == 1} {set cekidle [getchanidle $user $chanaway]if {$cekidle &gt; $idtimer} {set dodoldah "IdLe.DeteCteD"pushmode $chanaway -k $dodoldahpushmode $chanaway -v $user}putserv "WHOIS $user $user"#putlog "testing idle"}}}}}}timer ${timetocheckaway} printing}bind raw - 301 check_awayproc check_away { from keyword arg } {global chanawayset awaytext [string range [lrange $arg 2 end] 1 end]set nickaway [lindex $arg 1]if {[botonchan $chanaway] == 1} {if { $awaytext != "" } {if {[onchan $nickaway $chanaway] == 1} {if {[matchattr $nickaway f] != 1} {if {[isvoice $nickaway $chanaway] == 1} {pushmode $chanaway -v $nickaway#putlog "tesing idle"#if {[string match *k* [lindex [split [getchanmode $chanaway]] 0]]} {set dodoldah "IdLe.DeteCteD"pushmode $chanaway -k $dodoldah#}}}}}}}## idle DetecteD ##set timetocheckaway 5set chanaway "#allchannels"set idtimer 5#######JANGAN EDIT DI BAWAH INI LINES#######if {![info exists {ald}]} {global botnick chanaway timetocheckawayset ald 1timer ${timetocheckaway} printing}proc printing {} {global botnick chanaway timetocheckaway idtimerputlog "Check away on $chanaway"if {[botonchan $chanaway] == 1} {if {[botisop $chanaway]==1} {foreach user [chanlist $chanaway] {if {[isbotnick $user] == 0} {if {[isop $user $chanaway]==0} {if {[isvoice $user $chanaway] == 1} {set cekidle [getchanidle $user $chanaway]if {$cekidle &gt; $idtimer} {set dodoldah "IdLe.DeteCteD"pushmode $chanaway -k $dodoldahpushmode $chanaway -v $user}putserv "WHOIS $user $user"#putlog "testing idle"}}}}}}timer ${timetocheckaway} printing}bind raw - 301 check_awayproc check_away { from keyword arg } {global chanawayset awaytext [string range [lrange $arg 2 end] 1 end]set nickaway [lindex $arg 1]if {[botonchan $chanaway] == 1} {if { $awaytext != "" } {if {[onchan $nickaway $chanaway] == 1} {if {[matchattr $nickaway f] != 1} {if {[isvoice $nickaway $chanaway] == 1} {pushmode $chanaway -v $nickaway#putlog "testing idle  $nickaway is away and devoice on $chanaway"#if {[string match *k* [lindex [split [getchanmode $chanaway]] 0]]} {set dodoldah "IdLe.DeteCteD"pushmode $chanaway -k $dodoldah}}}}}}</code></pre></div><br>thx for help <br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8987">473X</a> — Sun May 20, 2007 12:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
