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

	<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-07-15T06:51:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[minotaur]]></name></author>
		<updated>2003-07-15T06:51:23-04:00</updated>

		<published>2003-07-15T06:51:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23497#p23497</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23497#p23497"/>
		<title type="html"><![CDATA[Tcl Error extra characters after close-quote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23497#p23497"><![CDATA[
Ok Thx to all guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> 4 help<br><br>But i still have one question how can i finde if a variable like $nick is the Nick of the Current Bot or of an Bot in the Botnet?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3458">minotaur</a> — Tue Jul 15, 2003 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-07-15T04:35:58-04:00</updated>

		<published>2003-07-15T04:35:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23492#p23492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23492#p23492"/>
		<title type="html"><![CDATA[Tcl Error extra characters after close-quote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23492#p23492"><![CDATA[
<blockquote class="uncited"><div>I dont understand you very well whats the problem can you give me an example?</div></blockquote>There are a couple of things in your script minotaur.<br><br>What stdragon means is that "if" constructs are made with curly braces, not with "(" and ")". This is the actual reason for the error message you are having.<br><br>Example:<div class="codebox"><p>Code: </p><pre><code>RIGHT: if { test } { ... }WRONG: if ( test ) { ... }</code></pre></div>Additionally, you have an "if([onchan "Q" $chan]) {". So, first you need to replace the "(" with a "{" and the ")" with a "}".<br>But also you need to include an extra space.<br><br>Example:<div class="codebox"><p>Code: </p><pre><code>RIGHT: if { test } { ... }WRONG: if{ test } { ... }WRONG: if { test }{ ... }(note the subtle differences)</code></pre></div>Third, your script introduces a global variable "recoverbot", but you test on the variable "recoverprot".<br><div class="codebox"><p>Code: </p><pre><code>proc ssystem:need {chan type} {    global recoverbot    if ($recoverprot == "1") {   [snip]</code></pre></div>Note that this if-statement also uses "(" and ")", which is wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Jul 15, 2003 4:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-07-15T03:45:22-04:00</updated>

		<published>2003-07-15T03:45:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23490#p23490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23490#p23490"/>
		<title type="html"><![CDATA[Tcl Error extra characters after close-quote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23490#p23490"><![CDATA[
you usually get this eror because there is a missing " or in your case you have too many "" in your script.<br><br>try not to put  more than a leadind " and a triling " in a same command<br><br>exemple :<br><div class="codebox"><p>Code: </p><pre><code>"op" {       putserv "PRIVMSG Q :OP $chan"       return 1 </code></pre></div>here you should not put op between "" since you got "PRIVMSG Q :OP $chan"  already between ""<br><br>hope it helps <br><br>Pitchat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Tue Jul 15, 2003 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[minotaur]]></name></author>
		<updated>2003-07-15T03:13:29-04:00</updated>

		<published>2003-07-15T03:13:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23488#p23488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23488#p23488"/>
		<title type="html"><![CDATA[Tcl Error extra characters after close-quote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23488#p23488"><![CDATA[
I dont understand you very well whats the problem can you give me an example?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3458">minotaur</a> — Tue Jul 15, 2003 3:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-07-14T20:19:26-04:00</updated>

		<published>2003-07-14T20:19:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23479#p23479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23479#p23479"/>
		<title type="html"><![CDATA[Tcl Error extra characters after close-quote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23479#p23479"><![CDATA[
Just a guess, but it's probably because you used parenthesis ( ) instead of curly braces { } in all your if statements.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Jul 14, 2003 8:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[minotaur]]></name></author>
		<updated>2003-07-14T20:10:45-04:00</updated>

		<published>2003-07-14T20:10:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23476#p23476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23476#p23476"/>
		<title type="html"><![CDATA[Tcl Error extra characters after close-quote]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23476#p23476"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc ssystem:need {chan type} {global recoverbotif ($recoverprot == "1") {if([onchan "Q" $chan]) { switch -- $type { "op" {    putserv "PRIVMSG Q :OP $chan"    return 1  } "unban" {    putserv "PRIVMSG Q :UNBANALL $chan"    return 1  } "invite" {    putserv "PRIVMSG Q :INVITE $chan"    return 1  } "limit" {    putserv "PRIVMSG Q :CHANFLAGS -impkl $chan"    return 1  }} }if([onchan "L" $chan]) { switch -- $type { "op" {    putserv "PRIVMSG L :OP $chan"    return 1  } "unban" {    putserv "PRIVMSG L :UNBANALL $chan"    return 1  } "invite" {    putserv "PRIVMSG L :INVITE $chan"    return 1  } "limit" {    putserv "PRIVMSG L :CLEARCHAN $chan"    return 1  }} } }}</code></pre></div>and then the error <blockquote class="uncited"><div>[02:13] Tcl error [ssystem:need]: extra characters after close-quote</div></blockquote>But i dont know why do you know the reason whats wrong???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3458">minotaur</a> — Mon Jul 14, 2003 8:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
