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

	<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>2003-09-04T17:54:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-04T17:54:14-04:00</updated>

		<published>2003-09-04T17:54:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26505#p26505</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26505#p26505"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26505#p26505"><![CDATA[
ok, that I realise <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=3085">Sir_Fz</a> — Thu Sep 04, 2003 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-04T15:04:43-04:00</updated>

		<published>2003-09-04T15:04:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26494#p26494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26494#p26494"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26494#p26494"><![CDATA[
<blockquote class="uncited"><div>set channel "#aide-moi.net"<br><br>$channel is already lower-case so [string tolower $channel] wouldn't be needed ?</div></blockquote>Yes but if you don't , and then later on you try to change that configuration variable (for a different channel) and slip in a capital letter, your code would be broken without the conversion.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Sep 04, 2003 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-04T04:16:11-04:00</updated>

		<published>2003-09-04T04:16:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26453#p26453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26453#p26453"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26453#p26453"><![CDATA[
If you are shure you have it in lowercase then is not needed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Sep 04, 2003 4:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-04T03:18:07-04:00</updated>

		<published>2003-09-04T03:18:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26447#p26447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26447#p26447"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26447#p26447"><![CDATA[
set channel "#aide-moi.net"<br><br>$channel is already lower-case so [string tolower $channel] wouldn't be needed ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Sep 04, 2003 3:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-04T01:55:01-04:00</updated>

		<published>2003-09-04T01:55:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26434#p26434</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26434#p26434"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26434#p26434"><![CDATA[
Also, you can have the channel name included in the bind like:<div class="codebox"><p>Code: </p><pre><code>bind part - "#channel *" do_part</code></pre></div>but again, the string tolower (strlwr if alltools.tcl is loaded) rules <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=187">caesar</a> — Thu Sep 04, 2003 1:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-03T22:49:49-04:00</updated>

		<published>2003-09-03T22:49:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26421#p26421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26421#p26421"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26421#p26421"><![CDATA[
Certain IRCD's (Most?) have a tendancy of returning channel names in various case formats (as a result of a user joining the channel in a different case)... as such you will want to make it a case insensitive expression, to handle these occurances....<br><br>For example:<div class="codebox"><p>Code: </p><pre><code>if {[string tolower $chan] != [string tolower $channel]} { return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Sep 03, 2003 10:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-09-03T22:21:32-04:00</updated>

		<published>2003-09-03T22:21:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26419#p26419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26419#p26419"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26419#p26419"><![CDATA[
works great<br><br>thanks<br><br>is it possible to use the same synthax for other scripts ?<br><div class="codebox"><p>Code: </p><pre><code>set channel "#aide-moi.net" global channel if {$chan != $channel} { return 0 } </code></pre></div>thks again<br><br>Pitchat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Sep 03, 2003 10:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Darkj]]></name></author>
		<updated>2003-09-03T22:16:18-04:00</updated>

		<published>2003-09-03T22:16:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26418#p26418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26418#p26418"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26418#p26418"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set channel "#aide-moi.net" bind part - "*" do_part proc do_part {nick user hand chan arg} {    global channel   if {$chan != $channel} { return 0 }   putserv "NOTICE $nick :Merci de ta présence parmis nous et à bientôt sur #Aide-Moi.Net"    return 0 } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3459">Darkj</a> — Wed Sep 03, 2003 10:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-09-03T22:13:15-04:00</updated>

		<published>2003-09-03T22:13:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26417#p26417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26417#p26417"/>
		<title type="html"><![CDATA[little help needed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26417#p26417"><![CDATA[
Hi <br><br>i have this little scripts who send a part msg when someone leave the channel. the problem is that the eggdrop say that message on everychannel he`s on and i`d like tio make it channel specific heres the code <div class="codebox"><p>Code: </p><pre><code>set channel "#aide-moi.net"bind part - "*" do_part proc do_part {nick user hand chan arg} {    putserv "NOTICE $nick :Merci de ta présence parmis nous et à bientôt sur #Aide-Moi.Net"    return 0 } </code></pre></div>thanks<br><br>Pitchat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Sep 03, 2003 10:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
