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

	<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>2009-09-23T13:50:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Zio_ruo]]></name></author>
		<updated>2009-09-23T13:50:17-04:00</updated>

		<published>2009-09-23T13:50:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90326#p90326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90326#p90326"/>
		<title type="html"><![CDATA[/names $chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90326#p90326"><![CDATA[
Thank you too ^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10844">Zio_ruo</a> — Wed Sep 23, 2009 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-09-22T16:16:28-04:00</updated>

		<published>2009-09-22T16:16:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90316#p90316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90316#p90316"/>
		<title type="html"><![CDATA[/names $chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90316#p90316"><![CDATA[
find it at<br><br><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm</a><br>for tcl 8.5<br><br>or<br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm</a><br>for tcl 8.4<br><br>nevertheless its almost the same<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Tue Sep 22, 2009 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zio_ruo]]></name></author>
		<updated>2009-09-22T16:50:28-04:00</updated>

		<published>2009-09-22T15:41:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90315#p90315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90315#p90315"/>
		<title type="html"><![CDATA[/names $chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90315#p90315"><![CDATA[
Thank you so much *_*<br>It works but there is a little problem:<br><blockquote class="uncited"><div>(21:06:44) [Part] Zio_ruo (-@stfu.omfgwtfbbq.org)<br>(21:06:44) [Join]: Ora sei in #humanature<br>(21:06:46) &lt;@Jagannath&gt; Jagannath @ #humanature :@Zio_ruo @Hanky_Panky @Jagannath <br>(21:06:47) &lt;@Jagannath&gt; Jagannath @ #humanature :@Zio_ruo @Hanky_Panky @Jagannath </div></blockquote>However i have stupid domand °°:<div class="codebox"><p>Code: </p><pre><code>        if {[string equal -nocase $chan #humanature]} { </code></pre></div>Can i find stuff like this in eggdrop /doc or in tcl tutorials ?_?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10844">Zio_ruo</a> — Tue Sep 22, 2009 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-09-22T14:41:16-04:00</updated>

		<published>2009-09-22T14:41:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90314#p90314</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90314#p90314"/>
		<title type="html"><![CDATA[/names $chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90314#p90314"><![CDATA[
Your bot is receiving the RAW 353 as an automatic response from the server when joining a channel, and not as a consequence of the code within your join proc. Your join proc does not work for any user INCLUDING the bot.<br><div class="codebox"><p>Code: </p><pre><code>if {$chan == "humannature"} {  # code here}</code></pre></div>In the above statement, there is no # in front of the channel name and in any case it is inadvisable to use such an equality test because it does not allow for differences in case. For example, the bot may know the channel as #Humanature rather than #humanature.<br><br>The following equality test is better<br><div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase $chan #humanature]} {  # code here}</code></pre></div>You might also want to prevent the code from triggering when the bot joins, since it will receive the RAW 353 automatically anyway.<br><br>The following code should work<br><div class="codebox"><p>Code: </p><pre><code>bind JOIN - * pUserJoinbind RAW - 353 pRaw353proc pUserJoin {nick uhost hand chan} {    if {![isbotnick $nick]} {        if {[string equal -nocase $chan #humanature]} {            putserv "NAMES $chan"         }    }    return 0}proc pRaw353 {from keyword text} {    putserv "PRIVMSG #humanature :$text"    return 0} putlog "\037BlaBOh tcl  by Zio_ruo\037" </code></pre></div>Alternatively you could have put the channel name in the JOIN bind mask. If I am not mistaken this is not case sensitive. There is good reason for this. The command 'string equal' is from the Core Tcl language where there is no concept of what an IRC channel is. However, a JOIN bind and associated mask is from Eggdrop TCL where the mask is expected to begin with an IRC channel name, for which case is irrelevant.<br><div class="codebox"><p>Code: </p><pre><code>bind JOIN - "#humanature *" pUserJoinbind RAW - 353 pRaw353proc pUserJoin {nick uhost hand chan} {    if {![isbotnick $nick]} {        putserv "NAMES $chan"     }    return 0}proc pRaw353 {from keyword text} {    putserv "PRIVMSG #humanature :$text"    return 0} putlog "\037BlaBOh tcl  by Zio_ruo\037" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Sep 22, 2009 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zio_ruo]]></name></author>
		<updated>2009-09-22T10:42:59-04:00</updated>

		<published>2009-09-22T10:42:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90311#p90311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90311#p90311"/>
		<title type="html"><![CDATA[/names $chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90311#p90311"><![CDATA[
Hi all, i wrote this script for make a /names $chan when a user join a specific chan:<br><div class="codebox"><p>Code: </p><pre><code>bind join - * join:rawbind raw - 353 RAW:blaproc join:raw { nick host hand chan } {        if { $chan == "humanature" } {                putserv "NAMES $chan"                return 1}                }proc RAW:bla { from keyword text } {                putserv "PRIVMSG #humanature :$text"                }putlog "\037BlaBOh tcl  by Zio_ruo\037"</code></pre></div>But it works only when the bot is joining the chan (i think because the eggdrop make a right /names $chan when it joins a chan)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10844">Zio_ruo</a> — Tue Sep 22, 2009 10:42 am</p><hr />
]]></content>
	</entry>
	</feed>
