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

	<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>2005-12-15T22:02:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-12-15T22:02:58-04:00</updated>

		<published>2005-12-15T22:02:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58327#p58327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58327#p58327"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58327#p58327"><![CDATA[
no, it was because he used 2 times a list function, but converted the string only the first time to a proper list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Dec 15, 2005 10:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarkerJr]]></name></author>
		<updated>2005-12-15T21:57:06-04:00</updated>

		<published>2005-12-15T21:57:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58325#p58325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58325#p58325"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58325#p58325"><![CDATA[
So, it was all due to forgetting to convert a list to a string before using it as a string?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2933">BarkerJr</a> — Thu Dec 15, 2005 9:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-12-15T19:51:11-04:00</updated>

		<published>2005-12-15T19:51:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58320#p58320</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58320#p58320"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58320#p58320"><![CDATA[
ahhhhhh perfect, that worked!!!<br>ty much Fz, I really appreciate the help <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=6846">WulfMan72</a> — Thu Dec 15, 2005 7:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-15T19:45:41-04:00</updated>

		<published>2005-12-15T19:45:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58319#p58319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58319#p58319"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58319#p58319"><![CDATA[
You can remove the 2nd 'set who...'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 15, 2005 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-12-15T19:37:56-04:00</updated>

		<published>2005-12-15T19:37:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58316#p58316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58316#p58316"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58316#p58316"><![CDATA[
ok, I shut the bot down completely and restarted it, went to test it again, and now I'm not getting a tcl error, but I'm getting this in the channel as the bots output:<br><br>\{nickname\}X is not in the channel<br><br>here's the code as it stands now:<div class="codebox"><p>Code: </p><pre><code>bind pub f kick, kickproc kick {nick host hand chan arg} {  set who [lindex [split $arg] 0]  set who [string map {\{ \\\{ \} \\\}} $who]  set reason [join [lrange [split $arg] 1 end]]    if {![onchan $who $chan]} {      putchan $chan "$who is not in the channel"     } else {   if {[botisop $chan]} {putkick $chan $who $reason}  }return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Thu Dec 15, 2005 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-12-15T19:34:21-04:00</updated>

		<published>2005-12-15T19:34:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58315#p58315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58315#p58315"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58315#p58315"><![CDATA[
From eggdrop.conf:<blockquote class="uncited"><div># Comment these two lines if you wish to enable the .tcl and .set commands.<br># If you select your owners wisely, you should be okay enabling these.<br>unbind dcc n tcl *dcc:tcl<br>unbind dcc n set *dcc:set</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Dec 15, 2005 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-15T19:29:27-04:00</updated>

		<published>2005-12-15T19:29:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58314#p58314</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58314#p58314"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58314#p58314"><![CDATA[
Capital <strong class="text-strong">I</strong>, error<strong class="text-strong">I</strong>nfo.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 15, 2005 7:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-12-15T19:13:02-04:00</updated>

		<published>2005-12-15T19:13:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58312#p58312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58312#p58312"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58312#p58312"><![CDATA[
ok, updated the line for setting the reason variable, and tried to do the .set errorinfo, this is what I got:<br><br>#Wulf# set errorinfo<br> Error: can't read "errorinfo": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Thu Dec 15, 2005 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-15T19:04:55-04:00</updated>

		<published>2005-12-15T19:04:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58310#p58310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58310#p58310"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58310#p58310"><![CDATA[
Just noticed<div class="codebox"><p>Code: </p><pre><code>set reason [lrange $arg 1 end]</code></pre></div>should be<div class="codebox"><p>Code: </p><pre><code>set reason [join [lrange [split $arg] 1 end]]</code></pre></div>Also, show us what <strong class="text-strong">.set errorInfo</strong> returns to know exactly where the error occurs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 15, 2005 7:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-12-15T18:58:21-04:00</updated>

		<published>2005-12-15T18:58:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58309#p58309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58309#p58309"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58309#p58309"><![CDATA[
tried that, same error <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>here's the revised code just to make sure I did it right:<div class="codebox"><p>Code: </p><pre><code>bind pub f kick, kickproc kick {nick host hand chan arg} {  set who [lindex [split $arg] 0]  set who [string map {\{ \\\{ \} \\\}} $who]  set reason [lrange $arg 1 end]    if {![onchan $who $chan]} {      putchan $chan "$who is not in the channel"     } else {   if {[botisop $chan]} {putkick $chan $who $reason}  }return 0}</code></pre></div>and error message again:<br>[17:55] Tcl error [kick]: list element in braces followed by "B" instead of space<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Thu Dec 15, 2005 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-15T18:52:22-04:00</updated>

		<published>2005-12-15T18:52:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58308#p58308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58308#p58308"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58308#p58308"><![CDATA[
Although this shouldn't happen (I tested it with a dcc command), try<div class="codebox"><p>Code: </p><pre><code>set who [string map {\{ \\\{ \} \\\}} $who]</code></pre></div>after setting who [lindex [split $arg] 0].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 15, 2005 6:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-12-15T18:22:52-04:00</updated>

		<published>2005-12-15T18:22:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58307#p58307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58307#p58307"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58307#p58307"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub f kick, kickproc kick {nick host hand chan arg} {  set who [lindex [split $arg] 0]  set reason [lrange $arg 1 end]    if {![onchan $who $chan]} {      putchan $chan "$who is not in the channel"     } else {   if {[botisop $chan]} {putkick $chan $who $reason}  }return 0}</code></pre></div>this code is working for all nicks accept ones with the {}'s in them<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Thu Dec 15, 2005 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-15T18:17:51-04:00</updated>

		<published>2005-12-15T18:17:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58306#p58306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58306#p58306"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58306#p58306"><![CDATA[
Show us the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 15, 2005 6:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-12-15T18:10:26-04:00</updated>

		<published>2005-12-15T18:10:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58305#p58305</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58305#p58305"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58305#p58305"><![CDATA[
hmmmm tried that Fz, same results, still getting the tcl error.<br><br>I'm using a winegg "eggdrop1.6.17"<br><br>dunno if that makes a difference, but it also doesn't seem to like the "read" command  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Thu Dec 15, 2005 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-15T17:34:45-04:00</updated>

		<published>2005-12-15T17:34:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58304#p58304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58304#p58304"/>
		<title type="html"><![CDATA[{}'s in nick cause tcl error...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58304#p58304"><![CDATA[
use <strong class="text-strong">arg</strong> instead of <strong class="text-strong">args</strong> because <strong class="text-strong">args</strong> has a special use in Tcl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 15, 2005 5:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
