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

	<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>2004-11-21T12:57:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-21T12:57:46-04:00</updated>

		<published>2004-11-21T12:57:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42947#p42947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42947#p42947"/>
		<title type="html"><![CDATA[Re: how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42947#p42947"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><blockquote class="uncited"><div>If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.</div></blockquote>hardly the best <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>the proper way to do this is to bind raw to End-of-/WHO list:<div class="codebox"><p>Code: </p><pre><code>bind raw - 315 checkXproc checkX {f k t} {  set chan [lindex [split $t] 1]  if [onchan X $chan] {    # X is on channel  } else {    # X is not on channel  }}</code></pre></div></div></blockquote>The structure:<br><br>if {...} { }<br>if {...} { }<br><br>works as well as<br><br>if {...} { }<br>else {...} { }<br><br>or<br><br>if {...} { }<br>elseif {...} { }<br>else {...} { }<br><br>If you have alot of conditions to select from then you might want to use elseif and else, otherwise 'if' is just fine, heh.</div></blockquote>I didn't mean the syntax, I meant your timer method.<br><br>Timers should never be used if there is an event-driven solution for a particular problem - as in this case.<br><br>Your timer method will not work if the timer is set to, say, 10 seconds but there is lag and join sync takes longer than that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Nov 21, 2004 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-11-21T12:31:26-04:00</updated>

		<published>2004-11-21T12:31:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42945#p42945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42945#p42945"/>
		<title type="html"><![CDATA[Re: how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42945#p42945"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.</div></blockquote>hardly the best <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>the proper way to do this is to bind raw to End-of-/WHO list:<div class="codebox"><p>Code: </p><pre><code>bind raw - 315 checkXproc checkX {f k t} {  set chan [lindex [split $t] 1]  if [onchan X $chan] {    # X is on channel  } else {    # X is not on channel  }}</code></pre></div></div></blockquote>The structure:<br><br>if {...} { }<br>if {...} { }<br><br>works as well as<br><br>if {...} { }<br>else {...} { }<br><br>or<br><br>if {...} { }<br>elseif {...} { }<br>else {...} { }<br><br>If you have alot of conditions to select from then you might want to use elseif and else, otherwise 'if' is just fine, heh.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Nov 21, 2004 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-11-21T12:33:45-04:00</updated>

		<published>2004-11-21T12:30:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42944#p42944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42944#p42944"/>
		<title type="html"><![CDATA[Re: how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42944#p42944"><![CDATA[
***EDITED***<br><br>Double post.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Nov 21, 2004 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2004-11-20T12:57:54-04:00</updated>

		<published>2004-11-20T12:57:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42907#p42907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42907#p42907"/>
		<title type="html"><![CDATA[how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42907#p42907"><![CDATA[
Thanks for the help i will try it asap<br><br>i`d like to point this ... before calling somebody a "ripper " you should first check if it`s the case ....<br><br>this portion of script is from a script that doesnt work at all and even the author post on this forum a while ago and didn`t receive any answer <br><br>i manage to make it work even if tcl is not what i do best except for the part listed above <br><br>be sure that when the script will be 100% working and if it can be useful to somebody it will be made available with all credits to the right people <br><br>have a nice day<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Sat Nov 20, 2004 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-11-20T12:48:46-04:00</updated>

		<published>2004-11-20T12:48:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42906#p42906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42906#p42906"/>
		<title type="html"><![CDATA[how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42906#p42906"><![CDATA[
Pitchat, Its quite clear you ripped that part from a different script too :\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Nov 20, 2004 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-20T11:10:35-04:00</updated>

		<published>2004-11-20T11:10:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42905#p42905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42905#p42905"/>
		<title type="html"><![CDATA[Re: how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42905#p42905"><![CDATA[
<blockquote class="uncited"><div>If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.</div></blockquote>hardly the best <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>the proper way to do this is to bind raw to End-of-/WHO list:<div class="codebox"><p>Code: </p><pre><code>bind raw - 315 checkXproc checkX {f k t} {  set chan [lindex [split $t] 1]  if [onchan X $chan] {    # X is on channel  } else {    # X is not on channel  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Nov 20, 2004 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-11-20T10:51:19-04:00</updated>

		<published>2004-11-20T10:51:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42903#p42903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42903#p42903"/>
		<title type="html"><![CDATA[Re: how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42903#p42903"><![CDATA[
If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.<br><br><strong class="text-strong"><br>utimer &lt;interval&gt; [list your:proc]<br></strong><br><br>And try something as simple as this:<br><div class="codebox"><p>Code: </p><pre><code>if {[onchan "X" $ref_chan]} { putserv "PRIVMSG $ref_chan :\002X\002 is \002present\002 on \002$ref_chan\002."}if {![onchan "X" $ref_chan]} { putserv "PRIVMSG $ref_chan :\002X\002 is \002*not* present\002 on \002$ref_chan\002."} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Nov 20, 2004 10:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2004-11-19T17:33:19-04:00</updated>

		<published>2004-11-19T17:33:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42895#p42895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42895#p42895"/>
		<title type="html"><![CDATA[how to debug this ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42895#p42895"><![CDATA[
HI<br><br>i have a tcl scripts that is suppose tu join a channel and check if theres an X on the channel then say it to another channel everything works fine except that the eggdrop state that there is no X on the channel when there is actually one !!<br><br>heres the problem code <div class="codebox"><p>Code: </p><pre><code>if {[onchan X $req_chan]} { set QLcheck 1 putserv "PRIVMSG $ref_chan :\002X\002 Présent sur le canal ! Demande refusée !" } { set QLcheck 0 putserv "PRIVMSG $ref_chan :Pas de \002X\002 présent sur le canal ! Exigence \002Correcte\002 !" } </code></pre></div>thanks in advance for any help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Fri Nov 19, 2004 5:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
