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

	<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>2004-04-17T03:48:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-17T03:48:16-04:00</updated>

		<published>2004-04-17T03:48:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35637#p35637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35637#p35637"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35637#p35637"><![CDATA[
Many Thanks user.<br><br>That did the job done. <br><br>Thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sat Apr 17, 2004 3:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-16T13:43:30-04:00</updated>

		<published>2004-04-16T13:43:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35626#p35626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35626#p35626"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35626#p35626"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set deop {}foreach user [chanlist $chn] { if {[isop $user $chn]&amp;&amp;![matchattr [nick2hand $user $chn] nmb]&amp;&amp;\![isbotnick $user]&amp;&amp;![onchansplit $user $chn]} {lappend deop $user}}massmode $chn -o $deop</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Apr 16, 2004 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-16T13:12:44-04:00</updated>

		<published>2004-04-16T13:12:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35623#p35623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35623#p35623"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35623#p35623"><![CDATA[
I dont understand. Can you elaborate please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Fri Apr 16, 2004 1:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-16T12:09:38-04:00</updated>

		<published>2004-04-16T12:09:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35619#p35619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35619#p35619"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35619#p35619"><![CDATA[
instead of 'pushmode', just 'lappend' the nicks to a variable and pass the resulting list to 'massmode' after the foreach loop. Or do a total rewrite of the massmode proc to include your rules <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=2878">user</a> — Fri Apr 16, 2004 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-16T07:40:08-04:00</updated>

		<published>2004-04-16T07:40:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35609#p35609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35609#p35609"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35609#p35609"><![CDATA[
My God.<br>Thanks user that works fine but there is one more thing.<br><br>I used to use <div class="codebox"><p>Code: </p><pre><code>foreach user [chanlist $chn] {set hand [nick2hand $user $chn]if {![isop $user $chn] || [matchattr $hand n] || [matchattr $hand b] || [matchattr $hand m] || $user == $botnick || [onchansplit $user $chn]} {continue} pushmode $chn -o $user }}</code></pre></div>and i used to specify which users to deop with this code:<div class="codebox"><p>Code: </p><pre><code>if {![isop $user $chn] || [matchattr $hand n] || [matchattr $hand b] || [matchattr $hand m] || $user == $botnick || [onchansplit $user $chn]} {continue}</code></pre></div>but now i dont know how to specify this with your "massmode" proc.<br><br>Can you explain how to do this using your proc ?<br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Fri Apr 16, 2004 7:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-15T11:41:02-04:00</updated>

		<published>2004-04-15T11:41:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35555#p35555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35555#p35555"/>
		<title type="html"><![CDATA[Something like this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35555#p35555"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc massmode {chan mode arg} {scan $mode {%[-+]%[bov]} p mset j [llength $arg]set k [expr {${::modes-per-line}-1}]set out "";for {set i 0} {$i&lt;$j} {incr i} {set args [lrange $arg $i [incr i $k]]append out "MODE $chan $p[string repeat $m [llength $args]] [join $args]\n"}putdccraw 0 [string len $out] $out}# thenmassmode #yourchan -o [chanlist #yourchan];#;)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Apr 15, 2004 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-15T09:00:48-04:00</updated>

		<published>2004-04-15T09:00:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35548#p35548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35548#p35548"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35548#p35548"><![CDATA[
Instead of simply using pushmode $chan +o $user to op everyone<br>i want to do this fast user putdccraw or putquick, thus i have<br>to seperate each user into different args.<br><br>I hope you understand  <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=3555">CoMMy</a> — Thu Apr 15, 2004 9:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2004-04-15T08:00:46-04:00</updated>

		<published>2004-04-15T08:00:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35543#p35543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35543#p35543"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35543#p35543"><![CDATA[
OK.<br><br>The "chanlist" command spits out a list of nickname on the channel.<br><br>The "foreach" command will cycle through each person in a list.<br><br>I don't understand why you are trying to do what your doing, as it quite simply isn't thought about.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 15, 2004 8:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-15T07:44:23-04:00</updated>

		<published>2004-04-15T07:44:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35542#p35542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35542#p35542"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35542#p35542"><![CDATA[
Well, I have this and it only ops 1 user while there are many in the channel to op.<br><div class="codebox"><p>Code: </p><pre><code>........foreach user [chanlist $chan] {if {![isop $user $chan] &amp;&amp; ![matchattr [nick2hand $user $chan] &amp;d $chan]} {set user0 [lindex $user 0]set user1 [lindex $user 1]set user2 [lindex $user 2]set user3 [lindex $user 3]set user4 [lindex $user 4]set user5 [lindex $user 5]set user6 [lindex $user 6] }}putserv "MODE $chan +o+o+o+o+o+o $user0 $user1 $user2 $user3 $user4 $user5 $user6"return 1 }}</code></pre></div>What is it with this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Thu Apr 15, 2004 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2004-04-15T06:48:03-04:00</updated>

		<published>2004-04-15T06:48:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35540#p35540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35540#p35540"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35540#p35540"><![CDATA[
The "chanlist" command returns a list of users that you can use lindex on.<br><br>What exactly are you trying to do, as you seem to be confusing how to operate lists.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Apr 15, 2004 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-15T09:02:09-04:00</updated>

		<published>2004-04-15T05:58:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35539#p35539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35539#p35539"/>
		<title type="html"><![CDATA[Grabbing Users From Foreach]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35539#p35539"><![CDATA[
Hey Guys,<br><br>I need you assistance on this.<br><br>When you do a <div class="codebox"><p>Code: </p><pre><code>foreach user [chanlist $chan] { </code></pre></div> The users are listed like this in the bot in seperate lines.<br><br>user1 <br>user2<br>user3<br>user4<br><br>How can i grab each user seperately? I know its not [lindex] because their not on the same line. What is the command ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Thu Apr 15, 2004 5:58 am</p><hr />
]]></content>
	</entry>
	</feed>
