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

	<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-10-23T16:50:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-23T16:50:08-04:00</updated>

		<published>2005-10-23T16:50:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56781#p56781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56781#p56781"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56781#p56781"><![CDATA[
for anyone interested, I got the script working, here was the final code:<div class="codebox"><p>Code: </p><pre><code>bind msg - !list servlistproc servlist {nick uh hand var} { set chan "#channel"  foreach user [chanlist $chan] {   if {[getuser [nick2hand $user $chan] XTRA status] != ""} {   set title [getuser [nick2hand $user $chan] XTRA title]   set status [getuser [nick2hand $user $chan] XTRA status]    putserv "PRIVMSG $nick :$title $user $status"  }  }  return 0}</code></pre></div>thanks for all the help  <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 <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Sun Oct 23, 2005 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-10-20T20:06:31-04:00</updated>

		<published>2005-10-20T20:06:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56731#p56731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56731#p56731"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56731#p56731"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[getuser [nick2hand $user] XTRA status] != ""}</code></pre></div>As for the above line, it's working as it should, get the info of the nick triggering the script and if they happen to be in the bots user file and have XTRA info, then display it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Oct 20, 2005 8:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-19T10:58:07-04:00</updated>

		<published>2005-10-19T10:58:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56712#p56712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56712#p56712"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56712#p56712"><![CDATA[
yes, I've tested it with two other people in the room who've had a status set, if they trigger it they see themselves but nobody else.  if I trigger it I only see myself.  if someone who doesn't have a status set, triggers it, they get nothing.<br><br>it seems that this line:<div class="codebox"><p>Code: </p><pre><code>if {[getuser [nick2hand $user] XTRA status] != ""} {</code></pre></div>is checking the person who triggers the !list instead of checking each person in the chanlist for that info, but Im not sure why it's doing that, or how to get it to go thru the list and check each user for that set info.  what's worse is the people who will NEED to view this list are ones who DON'T have the info set, so even if the script was returning all the people on the channel as it is now, it would still be useless since the people triggering it won't have a status set.  (if that makes any sense)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Wed Oct 19, 2005 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-19T06:59:06-04:00</updated>

		<published>2005-10-19T06:59:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56707#p56707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56707#p56707"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56707#p56707"><![CDATA[
are there actually any other persons online with entries than the one who requested it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Oct 19, 2005 6:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-18T21:11:42-04:00</updated>

		<published>2005-10-18T21:11:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56701#p56701</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56701#p56701"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56701#p56701"><![CDATA[
argh, i give up<br><br>I've tried all the suggestions here and even quite a few modications of my own and no matter what I do, it only returns the name and status and title of the person who triggers the !list, and nobody else.<br><br>ty everyone for your quick replies and attempts to help, if anyone comes up with and idea I'd still love to hear it, but for now, I'm shelfing that script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Tue Oct 18, 2005 9:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-18T19:57:14-04:00</updated>

		<published>2005-10-18T19:57:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56700#p56700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56700#p56700"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56700#p56700"><![CDATA[
you were supposed to replace all $hand within the foreach loop with the nick2hand thing <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 <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Oct 18, 2005 7:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-18T17:22:13-04:00</updated>

		<published>2005-10-18T17:22:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56699#p56699</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56699#p56699"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56699#p56699"><![CDATA[
ok, I updated it again, and it's still only pm'ing the name and status of the person who triggers the script, and not everyone in the chanlist that has a status set.<br><br>here's the updated script:<div class="codebox"><p>Code: </p><pre><code>bind msg - !list servlistproc servlist {nick uh hand var} { set chan "#channel"  foreach user [chanlist $chan] {  if {[getuser [nick2hand $user] XTRA status] != ""} {   set title [getuser $hand XTRA title]   set status [getuser $hand XTRA status]    putserv "PRIVMSG $nick :$title $hand $status"   return 0  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Tue Oct 18, 2005 5:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-10-18T17:06:27-04:00</updated>

		<published>2005-10-18T17:06:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56698#p56698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56698#p56698"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56698#p56698"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[getuser [nick2hand $user] XTRA status] != ""} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Oct 18, 2005 5:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-18T16:49:16-04:00</updated>

		<published>2005-10-18T16:49:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56697#p56697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56697#p56697"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56697#p56697"><![CDATA[
sorry to ask this, but could be more specific? replace all the set and putserv commands with [nick2hand $user]? or just the output string?<br><br>also, when I switch that, I get a "user does not exist" error when I trigger the bind<br><br>sorry for my newbishness<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Tue Oct 18, 2005 4:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-18T16:26:17-04:00</updated>

		<published>2005-10-18T16:26:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56696#p56696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56696#p56696"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56696#p56696"><![CDATA[
args sorry, of course you must use [nick2hand $user] instead of $hand <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. Don't know why it didnt catch my eye the first time and I even copied that stupid logical mistake... maybe thats how I am <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 <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Oct 18, 2005 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-18T14:15:22-04:00</updated>

		<published>2005-10-18T14:15:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56694#p56694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56694#p56694"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56694#p56694"><![CDATA[
yes, I wrote a quick proc to change how to set and access the XTRA information, just makes it easier for me to use personally.<br><br>I put in the suggestion you made, but the script still acts the same way, since I'm the one triggering the bind, it only checks to see if I have the XTRA information and only lists my name, instead of all the chanlist members who have that info set<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Tue Oct 18, 2005 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-18T14:03:11-04:00</updated>

		<published>2005-10-18T14:03:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56692#p56692</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56692#p56692"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56692#p56692"><![CDATA[
I assume [user-get h t] acts as [getuser $h XTRA $t].<br>In that case I would use '[getuser $hand XTRA status] != ""' instead of '![info exists [user-get $hand status]]'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Oct 18, 2005 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-18T13:32:28-04:00</updated>

		<published>2005-10-18T13:32:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56689#p56689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56689#p56689"/>
		<title type="html"><![CDATA[help with chanlist script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56689#p56689"><![CDATA[
ok, I'm writing a script that I want to use to track information on certain people in the channel.  I've worked out all the binds and procs to add that information as XTRA's with the bot, but here's my problem:<br><br>I want the bot to go thru the chanlist and see if each user has that info set, and if so, I want the bot to pm a list of those users and their information to the person who triggers the bind.<br><br>right now, it's only checking to see if the person who triggered it has the info and only displaying their name in the list if the information exists.<br><br>this is what I have:<div class="codebox"><p>Code: </p><pre><code>bind msg - !list servlistproc servlist {nick uh hand var} { set chan "#channel"  foreach user [chanlist $chan] {  if {![info exists [user-get $hand status]]} {   set title [user-get $hand title]   set status [user-get $hand status]    putserv "PRIVMSG $nick :$title $hand $status"  } return 0 }}</code></pre></div>I think I understand why it's only checking the user who triggers the bind, but I don't know how to make it check each user in the chanlist and display the information for each user regardless of who triggers it.<br><br>any help would be appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Tue Oct 18, 2005 1:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
