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

	<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>2002-08-23T23:42:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-23T23:42:00-04:00</updated>

		<published>2002-08-23T23:42:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9984#p9984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9984#p9984"/>
		<title type="html"><![CDATA[channel list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9984#p9984"><![CDATA[
ok ive actually modified it to do what i want myself:<br><blockquote class="uncited"><div>set a <ul> <li>foreach ch [channels] {<br>  if { [matchattr $handle_requested -|nmovl $ch] == 1 } {<br>   putnotc $nick "$ch"<br>   }<br>  }</li></ul></div></blockquote>Thanks for the pointers <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Fri Aug 23, 2002 11:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-23T15:31:47-04:00</updated>

		<published>2002-08-23T15:31:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9979#p9979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9979#p9979"/>
		<title type="html"><![CDATA[channel list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9979#p9979"><![CDATA[
Actually, i just implemented that script which im guessing would work with any channel or global flags at all, so i added a user with no global or channel flags, and tried the script on that person. However, the script appears to add a channel to the user and then tells me that the user has access in it.<br><br>ie. Before the command<br><br>&lt;H4&gt; bob       yes      0 -               never (nowhere   )<br>&lt;H4&gt;   EMAIL: <a href="mailto:a@b.com">a@b.com</a><br><br>after the command:<br><br>&lt;H4&gt; bob       yes      0 -               never (nowhere   )<br>&lt;H4&gt;    #VoiceNET          -               never<br>&lt;H4&gt;   EMAIL: <a href="mailto:a@b.com">a@b.com</a><br><br>Simon.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Fri Aug 23, 2002 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-22T10:43:50-04:00</updated>

		<published>2002-08-22T10:43:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9963#p9963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9963#p9963"/>
		<title type="html"><![CDATA[channel list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9963#p9963"><![CDATA[
Hi, thanks, access to the channel in this case would mean having either of following flags for the specific channel.<br><br>n m o l v<br><br>how would the script be modified to accomodate this?<br><br>thanks<br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Thu Aug 22, 2002 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-15T08:01:31-04:00</updated>

		<published>2002-08-15T08:01:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9808#p9808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9808#p9808"/>
		<title type="html"><![CDATA[channel list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9808#p9808"><![CDATA[
You would have to do them individualy.<br><br>However, the foreach can be used to loop through them like this.<br><br>somthing like<br><div class="codebox"><p>Code: </p><pre><code>proc chanaccess {hand} {  set a [list]  foreach ch [channels] {    switch -- [chattr $hand {} $ch] {      "*" { return -1 }      default { lappend a $ch }    }  }  return $a}</code></pre></div>That will return a list of channels that a user has flags on. If the user does not exist, it returns -1.<br><br>It can be quicly addapted to check for certain flags.<br><br>It all depends what you constitute as access.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Aug 15, 2002 8:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-08-15T06:33:50-04:00</updated>

		<published>2002-08-15T06:33:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9804#p9804</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9804#p9804"/>
		<title type="html"><![CDATA[channel list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9804#p9804"><![CDATA[
Try a foreach statement with that. Might not be exactly what you are looking for, but should do the trick none the less.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Thu Aug 15, 2002 6:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-14T21:15:36-04:00</updated>

		<published>2002-08-14T21:15:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9799#p9799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9799#p9799"/>
		<title type="html"><![CDATA[channel list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9799#p9799"><![CDATA[
Hi<br><br>is there any way to retrieve a list of channels a user has access in from the userfile in the same way that information can be retrieved using the getuser command. Ive looked through tcl-commands.doc and it appears i can only check whether a user is on the access list of each channel individually.<br><br>thanks<br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Wed Aug 14, 2002 9:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
