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

	<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>2007-06-22T18:28:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T18:28:33-04:00</updated>

		<published>2007-06-22T18:28:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73795#p73795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73795#p73795"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73795#p73795"><![CDATA[
Ok, so<div class="codebox"><p>Code: </p><pre><code>proc make {chan {nick ""}} { set chanlist [chanlist $chan] if {$nick != ""} {  set i [lsearch -exact $chanlist $chan]  set chanlist [lreplace $chanlist $i $i] } # do whatever here}</code></pre></div>So, in you part/sign/kick procedures, pass an extra argument to [make] which is $nick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DzieX]]></name></author>
		<updated>2007-06-22T10:57:53-04:00</updated>

		<published>2007-06-22T10:57:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73788#p73788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73788#p73788"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73788#p73788"><![CDATA[
Ok, maybe if I paste script in here You will understand what I'm writing about:<br><div class="codebox"><p>Code: </p><pre><code>proc join {nick host handle chan} {    make $chan}proc kick {nick host handle chan knick arg} {    make $chan}proc mode {nick host handle chan arg mnick} {    make $chan}proc nick {nick host handle chan newnick} {    make $chan}proc part {nick host handle chan rest} {    make $chan}proc sign {nick host handle chan arg} {    make $chan}proc topc {nick host handle chan topic} {    make $chan}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>bind join - * joinbind kick - * kickbind mode - * modebind nick - * nickbind part - * partbind sign - * signbind topc - * topc</code></pre></div>make is my procedure, which writes all data to database (6 records <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">).<br><br>OK, now I know how to do that. make will get one extra default parameter - nickname. In procedures sign and part, it will get user name, who has left channel. In other no (parameter by default will be "").<br><br>Thanks, for help and patience <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=9078">DzieX</a> — Fri Jun 22, 2007 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T09:55:19-04:00</updated>

		<published>2007-06-22T09:55:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73785#p73785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73785#p73785"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73785#p73785"><![CDATA[
<blockquote class="uncited"><div>All events call the same function with one parameter - channel name, so I don't have access to nick and can't exclude it from list.</div></blockquote>Ok, then as I said before you are getting the nicks that are currently in the channel and you need no "nick" to be removed.<br><br>Unless you're using it inside PART or SIGN binds, you don't need to remove the parting/quitting nick from the chanlist list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-22T09:49:27-04:00</updated>

		<published>2007-06-22T09:49:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73784#p73784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73784#p73784"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73784#p73784"><![CDATA[
<blockquote class="uncited"><div>    (9)  PART (stackable)<br>         bind part &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;msg&gt;<br><br>         Description: triggered by someone leaving the channel. The mask is<br>           matched against "#channel nick!user@host" and can contain<br>           wildcards. If no part message is specified, msg will be set<br>           to "".<br><br>           New Tcl procs should be declared as<br>             proc partproc {nick uhost hand chan {msg ""}} { ... }<br>           for compatibility.<br>         Module: irc<br><br>    (10) SIGN (stackable)<br>         bind sign &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;reason&gt;<br><br>         Description: triggered by a signoff, or possibly by someone who got<br>           netsplit and never returned. The signoff message is the last<br>           argument to the proc. Wildcards can be used in the mask, which is<br>           matched against '#channel nick!user@host'.<br>         Module: irc</div></blockquote>You've got nick, ident@host, possible handle, channel, and for sign, reason. Obviously, both these will provide the nickname of the one who left, and thus excluding it from the output of chanlist should'nt be so hard using a few temporary variables, lreplace, and lsearch.<br><blockquote class="uncited"><div>All events call the same function with one parameter - channel name, so I don't have access to nick and can't exclude it from list.</div></blockquote>What are you talking about here? The only two bindings that are effected are the PART and SIGN bindings, both which supply alot more than simply a channelname...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Jun 22, 2007 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DzieX]]></name></author>
		<updated>2007-06-22T08:03:50-04:00</updated>

		<published>2007-06-22T08:03:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73778#p73778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73778#p73778"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73778#p73778"><![CDATA[
All events call the same function with one parameter - channel name, so I don't have access to nick and can't exclude it from list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9078">DzieX</a> — Fri Jun 22, 2007 8:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-21T19:12:57-04:00</updated>

		<published>2007-06-21T19:12:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73748#p73748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73748#p73748"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73748#p73748"><![CDATA[
<blockquote class="uncited"><div>I thought, I can do it simpler, but OK.</div></blockquote>It is simple. What exactly is your problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jun 21, 2007 7:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DzieX]]></name></author>
		<updated>2007-06-21T16:24:04-04:00</updated>

		<published>2007-06-21T16:24:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73745#p73745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73745#p73745"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73745#p73745"><![CDATA[
I thought, I can do it simpler, but OK.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9078">DzieX</a> — Thu Jun 21, 2007 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-21T10:56:46-04:00</updated>

		<published>2007-06-21T10:56:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73734#p73734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73734#p73734"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73734#p73734"><![CDATA[
What's meant by the comment you highlighted is that if you execute this command in a sign/part procedure, the nick which parted/signed will still be listed in the chan list. If you're not executing it inside a sign/part-proc then you'll be getting the list of users currently in the channel. However, if it is being used inside a part/sign-proc you can simply exclude the nick that parted from the chanlist.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jun 21, 2007 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-06-21T10:38:10-04:00</updated>

		<published>2007-06-21T10:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73733#p73733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73733#p73733"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73733#p73733"><![CDATA[
.channel #channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Thu Jun 21, 2007 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DzieX]]></name></author>
		<updated>2007-06-21T10:21:00-04:00</updated>

		<published>2007-06-21T10:21:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73731#p73731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73731#p73731"/>
		<title type="html"><![CDATA[How to get user list on specified channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73731#p73731"><![CDATA[
I tried to use command: chanlist &lt;channel&gt;  [flags[&amp;chanflags]], but documentation says:<br><blockquote class="uncited"><div>Returns: list of nicknames currently on the bot's channel that have all of the flags specified;. If no flags are given, all of the nicknames are returned. <span style="color:red">Please note that if you're executing chanlist after a part or sign bind, the gone user will still be listed</span>, so you can check for wasop, isop, etc.</div></blockquote>I don't know how to get list of users which are currently on my channel <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9078">DzieX</a> — Thu Jun 21, 2007 10:21 am</p><hr />
]]></content>
	</entry>
	</feed>
