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

	<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-02-11T17:20:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-11T17:20:41-04:00</updated>

		<published>2004-02-11T17:20:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33481#p33481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33481#p33481"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33481#p33481"><![CDATA[
Thank You verry much! It now works! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by Guest — Wed Feb 11, 2004 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-02-11T16:57:14-04:00</updated>

		<published>2004-02-11T16:57:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33479#p33479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33479#p33479"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33479#p33479"><![CDATA[
instead of:<div class="codebox"><p>Code: </p><pre><code>if ($chan == "#skylords-intern") </code></pre></div>better use:<div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase $chan "#skylords-intern"]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Feb 11, 2004 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TALES]]></name></author>
		<updated>2004-02-11T12:55:14-04:00</updated>

		<published>2004-02-11T12:55:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33471#p33471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33471#p33471"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33471#p33471"><![CDATA[
Just like the man saids:<div class="codebox"><p>Code: </p><pre><code>proc metainvite {nick host hand chan} {  if ($chan == "#skylords-intern") {  putserv "INVITE $nick #colossus"  return 0  } else {   return 0  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4104">TALES</a> — Wed Feb 11, 2004 12:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-11T13:21:01-04:00</updated>

		<published>2004-02-11T12:47:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33469#p33469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33469#p33469"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33469#p33469"><![CDATA[
the script now looks like this, but there is no change in the error Message<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>bind join - " #skylords-intern * " metainvite<br><br>proc metainvite {nick host hand chan args} {<br>if ($chan == "#skylords-intern" ) {<br>        putserv "INVITE $nick  #colossus"<br>        return 0<br>} else {<br>return 0 }<br> }<p>Statistics: Posted by Guest — Wed Feb 11, 2004 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-02-11T11:28:14-04:00</updated>

		<published>2004-02-11T11:28:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33462#p33462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33462#p33462"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33462#p33462"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {condition} {    do_sth} else {    do_sth}</code></pre></div>note the {} at the condition and that the "else" has to be in the same line as the closing } of the "if"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Wed Feb 11, 2004 11:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-11T10:22:55-04:00</updated>

		<published>2004-02-11T10:22:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33453#p33453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33453#p33453"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33453#p33453"><![CDATA[
Hmmm....<br>I have changed that in my script.<br>But the Eggdrop still displays the following Error-Message:<br><br>Tcl error [metainvite]: wrong # args: extra words after "else" clause in "if" command<br><br>The script now looks like this: <br><br>bind join - "#skylords-intern *" metainvite<br><br>proc metainvite {nick host hand chan} {<br>if ($chan == "#skylords-intern" ) {<br>        putserv "INVITE $nick  #colossus"<br>        return 0<br>        }<br>else {return 0}<br>}<br><br>Thanks for your help in advance!<p>Statistics: Posted by Guest — Wed Feb 11, 2004 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-02-11T09:59:14-04:00</updated>

		<published>2004-02-11T09:59:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33451#p33451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33451#p33451"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33451#p33451"><![CDATA[
Wait a sec, take a look at you're script, you're sending a PRIVATE MSG to a channel, which contains the text "/invite blah". Try 'putserv "INVITE $nick #colossus"' instead...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Wed Feb 11, 2004 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-11T07:44:51-04:00</updated>

		<published>2004-02-11T07:44:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33448#p33448</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33448#p33448"/>
		<title type="html"><![CDATA[binding a join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33448#p33448"><![CDATA[
hi,<br><br>I am trying tomake a script, which invites everyone who joins a channel, into a certain other channel. <br>Here is the script that that unforunately doesen't work:<br><br>bind join - "#skylords-intern *" metainvite<br><br>proc metainvite {nick host hand chan} {<br>if ($chan == "#skylords-intern"){<br>        puthelp "PRIVMSG $chan : /invite $nick #colossus"<br>        return 0<br>        }<br>return 0<br><br>Could you please help me? <br><br>Thank You <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by Guest — Wed Feb 11, 2004 7:44 am</p><hr />
]]></content>
	</entry>
	</feed>
