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

	<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>2006-05-10T12:21:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-05-05T23:35:05-04:00</updated>

		<published>2006-05-05T23:35:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62677#p62677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62677#p62677"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62677#p62677"><![CDATA[
thou i am using <div class="codebox"><p>Code: </p><pre><code>proc dcc:help {hand idx} {</code></pre></div> but somehow it was'nt getting the right idx.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri May 05, 2006 11:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-05T22:13:37-04:00</updated>

		<published>2006-05-05T22:13:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62669#p62669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62669#p62669"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62669#p62669"><![CDATA[
true, adding a routine to gather the correct idx with hand2idx would work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 05, 2006 10:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2006-05-05T22:10:40-04:00</updated>

		<published>2006-05-05T22:10:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62668#p62668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62668#p62668"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62668#p62668"><![CDATA[
not really. putidx works fine if you have the correct idx, and honeybee should be getting the correct one from the dcc bind<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri May 05, 2006 10:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-05T22:08:31-04:00</updated>

		<published>2006-05-05T22:08:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62667#p62667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62667#p62667"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62667#p62667"><![CDATA[
then the answer someone should have given for this topic is:<br>replace<div class="codebox"><p>Code: </p><pre><code>putidx $idx [format "%-1s %-10s %-20s %-36s %-1s" $w_nick $w_bot $w_host $w_idle $w_away] </code></pre></div>with <div class="codebox"><p>Code: </p><pre><code>putlog [format "%-1s %-10s %-20s %-36s %-1s" $w_nick $w_bot $w_host $w_idle $w_away] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 05, 2006 10:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2006-05-05T21:51:39-04:00</updated>

		<published>2006-05-05T21:51:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62665#p62665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62665#p62665"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62665#p62665"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>.tcl foreach person [whom *] {return $person}</code></pre></div>only returned a single record with 4 users logged in<br><div class="codebox"><p>Code: </p><pre><code>.tcl whom *</code></pre></div>returned records for all users<br><br>I'm thinking that foreach isn't the best way to split the records</div></blockquote>you should try what fz did (putlog).<br><strong class="text-strong">return</strong> is doing what it's supposed to, so you dont get to complete the loop<br><br>foreach works fine<br><br>edit: honeybee's code works fine here btw<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri May 05, 2006 9:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-05T20:17:22-04:00</updated>

		<published>2006-05-05T20:17:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62664#p62664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62664#p62664"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62664#p62664"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>.tcl foreach person [whom *] {return $person}</code></pre></div>only returned a single record with 4 users logged in<br><div class="codebox"><p>Code: </p><pre><code>.tcl whom *</code></pre></div>returned records for all users<br><br>I'm thinking that foreach isn't the best way to split the records<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 05, 2006 8:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-05T20:08:33-04:00</updated>

		<published>2006-05-05T20:08:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62663#p62663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62663#p62663"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62663#p62663"><![CDATA[
You are saying that you used honeybee's code and the bot returned two lines using putidx, not putlog?<br>The lindex is only operating on first record.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 05, 2006 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-05T19:36:32-04:00</updated>

		<published>2006-05-05T19:36:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62662#p62662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62662#p62662"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62662#p62662"><![CDATA[
<blockquote class="uncited"><div>{dragnlord Tarn telnet@* 0 {} 0} {bloodwind Tarn telnet@* 0 {} 0}</div></blockquote>is a list of 2 elements:<div class="codebox"><p>Code: </p><pre><code># 1:dragnlord Tarn telnet@* 0 {} 0# 2:bloodwind Tarn telnet@* 0 {} 0</code></pre></div>Try it:<div class="codebox"><p>Code: </p><pre><code>.tcl foreach bla [whom *] { putlog $bla }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 05, 2006 7:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-05T19:20:56-04:00</updated>

		<published>2006-05-05T19:20:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62660#p62660</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62660#p62660"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62660#p62660"><![CDATA[
<blockquote class="uncited"><div>Actually no, [whom *] returns a list of all users in partyline and not a string. So your script, honeybee, will display info about all connected users - each on a line. For example:<div class="codebox"><p>Code: </p><pre><code>opposing Shrider    telnet@x.x.x.x 0opposing Shrider    telnet@x.x.x.x 0</code></pre></div></div></blockquote>This is what it looks like on my bots:<div class="codebox"><p>Code: </p><pre><code>Tcl: {dragnlord Tarn telnet@* 0 {} 0} {bloodwind Tarn telnet@* 0 {} 0}</code></pre></div>multiple users, one line<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 05, 2006 7:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-05T19:08:39-04:00</updated>

		<published>2006-05-05T19:08:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62657#p62657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62657#p62657"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62657#p62657"><![CDATA[
Actually no, [whom *] returns a list of all users in partyline and not a string. So your script, honeybee, will display info about all connected users - each on a line. For example:<div class="codebox"><p>Code: </p><pre><code>opposing Shrider    telnet@x.x.x.x 0opposing Shrider    telnet@x.x.x.x 0</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 05, 2006 7:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-05T13:35:20-04:00</updated>

		<published>2006-05-05T13:35:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62648#p62648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62648#p62648"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62648#p62648"><![CDATA[
It only shows one person because '.tcl whom *' spits it all out in a single line.<br>Your proc only matches the first set, hence why you only see one reported.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 05, 2006 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-05-10T12:21:36-04:00</updated>

		<published>2006-05-05T10:57:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62640#p62640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62640#p62640"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62640#p62640"><![CDATA[
This is suppose to display one person i want a mean to display all, thats what i wanted to ask.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri May 05, 2006 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-05T09:57:20-04:00</updated>

		<published>2006-05-05T09:57:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62636#p62636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62636#p62636"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62636#p62636"><![CDATA[
It displays one person at a time. If it's displaying only 1 person, that means there's only 1 person.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 05, 2006 9:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-05-10T12:20:22-04:00</updated>

		<published>2006-05-05T07:07:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62633#p62633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62633#p62633"/>
		<title type="html"><![CDATA[Need help in displaying muliple info in dcc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62633#p62633"><![CDATA[
I'm writting a tcl in which i need to get these data and display it, its works fine but it only displays only one user instead of all. how can display multiple rather than one?<br><div class="codebox"><p>Code: </p><pre><code>foreach person [whom *] {  set w_nick  [lindex $person 0]; set w_bot [lindex $person 1]; set w_host [lindex $person 2]; set w_idle [lindex $person 4]; set w_away [lindex $person 5]  </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri May 05, 2006 7:07 am</p><hr />
]]></content>
	</entry>
	</feed>
