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

	<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-02-05T09:44:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T09:44:12-04:00</updated>

		<published>2003-02-05T09:44:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16195#p16195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16195#p16195"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16195#p16195"><![CDATA[
i ended up chucking the little line into the script<div class="codebox"><p>Code: </p><pre><code>set conchan [lindex [console $idx] 0]</code></pre></div><br>The script itself is one that i am using to produce a kick log to a text file. Figured why it wasnt working, it seems i forgot to make the file in the first place <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>It is a partyline command. Guess i forgot to give the vital information you needed. sorry for that. The line above works pretty nicely and it solves problems i have found in a couple of my scripts where i have wanted this ability, and have been unable to find it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Thanks <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=1195">Weirdo</a> — Wed Feb 05, 2003 9:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-05T09:33:47-04:00</updated>

		<published>2003-02-05T09:33:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16193#p16193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16193#p16193"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16193#p16193"><![CDATA[
There should be no need to use the code you have pasted, and only means you have to do more work, to make a kick.<br><br>You don't need to do sotmhing the way we tell you, we simply provide work examples, that can be converted, used and/or incorpirated into your own scripts.<br><br>Again, you shouldn't keep it exactly the same, and should addapt it to your own needs.<br><br>Can you please tell me.<br><br>Where is the kick command typed?<br><br>If in the partyline, why create a seperate command to work out the console channel, then the kick command to do the kick?<br><br>As you noted, this way,t he console channel will go out of sync. Simply incorporate the code directly into the kick command, and it can't go out of sync.<br><br>If it's in a IRC message, ont he channel or private, then you can use the "getuser &lt;handle&gt; console" command, to obtain the details.<br><br>When you said you wanted to incorporate it, and you needed help. This usualy means you need to provide the information for us to show you. If we where looking over your sholder, you wouldn't need the forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Feb 05, 2003 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T09:20:21-04:00</updated>

		<published>2003-02-05T09:20:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16191#p16191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16191#p16191"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16191#p16191"><![CDATA[
I figured it was an error in the copy n paste, so i typed it all out again, and deleted the code i copied. Looks like a stray character.<br><div class="codebox"><p>Code: </p><pre><code>bind dcc - conchan dcc:conchanproc dcc:conchan {hand idx arg} {global conchanset conchan [lindex [console $idx] 0]putdcc $idx "Your channel: $conchan"}</code></pre></div>Slight question. How can i add this little procedure into my main code so that when the main bit is run, it runs this channel checking procedure and so the $conchan keeps accurate. <br><br>I added the dcc:conchan into the code before, and during rehash, this error occured<br><br>[13:01:14] &lt;Minako&gt; [13:01] Tcl error [dcc:dragon]: wrong # args: should be "dcc:conchan hand idx arg"<br><br>added the hand idx and arg after dcc:conchan, and got Invalid IDX error. <br><br>So its been taken out of the main script, evidently i doing it wrong <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Feb 05, 2003 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-05T09:06:22-04:00</updated>

		<published>2003-02-05T09:06:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16190#p16190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16190#p16190"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16190#p16190"><![CDATA[
<blockquote class="uncited"><div><br>i not sure why, might be the way i copied the code, but getting this on the script you gave me<br><br>[12:51:24] &lt;Minako&gt; [12:51] Tcl error [dcc:conchan]: invalid command name "Â "<br><br>Bit odd <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>A bit Weirdo indeed.<br><br><a href="http://members.fortunecity.com/eggheadtcl/myconsole.tcl.txt" class="postlink">http://members.fortunecity.com/eggheadt ... le.tcl.txt</a><br><blockquote class="uncited"><div>With a rewrite of ... [snip]</div></blockquote>Did you need to rewrite it? I'm curious what was the problem and how you solved it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Feb 05, 2003 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T09:01:05-04:00</updated>

		<published>2003-02-05T09:01:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16189#p16189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16189#p16189"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16189#p16189"><![CDATA[
Yeah, discovered there were 3 different channels<br><br>the one i want was the one defined in the log below<br><br>[12:50:00] &lt;Minako&gt; [12:50] @#weirdo (+trn) : [m/2 o/2 h/0 v/0 n/0 b/0 e/- I/-]<br><br>Since that is defined by the console setting, that was what i wanted to retrieve. With a rewrite of Egghead's code, i was able to get it working, and am going to try and put it into my script. Hopefully it should work <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=1195">Weirdo</a> — Wed Feb 05, 2003 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T08:56:30-04:00</updated>

		<published>2003-02-05T08:56:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16188#p16188</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16188#p16188"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16188#p16188"><![CDATA[
Yep, trying to find the console channel for the handle that does the command. So i can use a kick script that uses the channel of the person doing the command<br><br>i not sure why, might be the way i copied the code, but getting this on the script you gave me<br><br>[12:51:24] &lt;Minako&gt; [12:51] Tcl error [dcc:conchan]: invalid command name "Â "<br><br>Bit odd <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=1195">Weirdo</a> — Wed Feb 05, 2003 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-05T08:52:13-04:00</updated>

		<published>2003-02-05T08:52:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16187#p16187</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16187#p16187"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16187#p16187"><![CDATA[
I aint sure what your define as the console channel.<br><br>The console channel, as defined by eggdrop, is the channel, for which a user is seeing channel specific putlog lines, which are based on IRC channels. This is changed using .console command.<br><br>Do you mean this, or partyline channel, which can be changed using ".chat"?<br><br>The IRC console channels, the "console" command can be used, so long as the user is on the partyline.<br><br>I have tested the getuser command too. "getuser &lt;handle&gt; CONSOLE" will return the console settings.<br><br>As for obtaining the partyline channel, this requires a IDX.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Feb 05, 2003 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-05T08:44:04-04:00</updated>

		<published>2003-02-05T08:44:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16186#p16186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16186#p16186"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16186#p16186"><![CDATA[
<blockquote class="uncited"><div>all i can find in my TCL-Commands about the console is the command console which sets their channel and modes. Thinking that i would have to find the idx of the user first. And then run another command to find what channel that idx is on. I dont think that the partyline channel thingy would work either <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I had a deep look into this earlier on, most likely i have missed something.<br><br>I had thought that the Get user command might have done this, but it evidently only picks up from the userfile. Tis quite confusing</div></blockquote>It seems you want to find the console channel (?)<br><div class="codebox"><p>Code: </p><pre><code>bind dcc - mycommand dcc:mycommandproc dcc:mycommand { handle idx arg } {   set channel [lindex [console $idx] 0]   putdcc $idx "Your channel: $channel"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Feb 05, 2003 8:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T07:52:49-04:00</updated>

		<published>2003-02-05T07:52:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16184#p16184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16184#p16184"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16184#p16184"><![CDATA[
all i can find in my TCL-Commands about the console is the command console which sets their channel and modes. Thinking that i would have to find the idx of the user first. And then run another command to find what channel that idx is on. I dont think that the partyline channel thingy would work either <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I had a deep look into this earlier on, most likely i have missed something.<br><br>I had thought that the Get user command might have done this, but it evidently only picks up from the userfile. Tis quite confusing<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Feb 05, 2003 7:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-05T07:43:36-04:00</updated>

		<published>2003-02-05T07:43:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16183#p16183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16183#p16183"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16183#p16183"><![CDATA[
See tcl-commands.doc.<br><br>Console channels are on a user-by-users basis. It's not a case of one person changes the console, so all consoles change.<br><br>As such, you have to tell the command which user you are trying to lookup.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Feb 05, 2003 7:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T07:54:39-04:00</updated>

		<published>2003-02-05T07:36:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16182#p16182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16182#p16182"/>
		<title type="html"><![CDATA[&quot;can't read &quot;chan&quot;: no such variable&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16182#p16182"><![CDATA[
Is there a way i can get the bot to recognise the console channel as $chan?<br><br>(PS Damn subject <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Feb 05, 2003 7:36 am</p><hr />
]]></content>
	</entry>
	</feed>
