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

	<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-07-17T18:51:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-07-17T18:51:41-04:00</updated>

		<published>2007-07-17T18:51:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74494#p74494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74494#p74494"/>
		<title type="html"><![CDATA[Re: Help with List Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74494#p74494"><![CDATA[
<blockquote class="uncited"><div>I have a routine to do it, but it fails on nicks with special characters. I know the fix is the "list" command, but I could sure use a bit of help on where to use it</div></blockquote><a href="http://www.peterre.info/characters.html" class="postlink">http://www.peterre.info/characters.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Jul 17, 2007 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-07-17T15:28:54-04:00</updated>

		<published>2007-07-17T15:28:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74489#p74489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74489#p74489"/>
		<title type="html"><![CDATA[Help with List Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74489#p74489"><![CDATA[
No need for the while loop, when you have a foreach loop...<br><div class="codebox"><p>Code: </p><pre><code>bind dcc n| opops opopsproc opops {h id chan} {  global botnick  set members [chanlist $chan]  putdcc $id $members  set opnicks ""  set dumps 0  putdcc $id "op oping $chan"  foreach who $members {    if {![isop $who $chan] &amp;&amp; [matchattr [nick2hand $who] o|o $chan] } {       lappend opnicks $who      incr dumps 1      if {[llength $opnicks] == "6"} {        putquick "MODE $chan +oooooo [join $opnicks " "]"        unset opnicks      }    }  }  if {[[length $opnicks] &gt;=1} {    putquick "MODE $chan +[string repeat "o" [llength $opnicks]] [join $opnicks " "]"    unset opnicks  }  set dumps [expr {$dumps  / 6}]}</code></pre></div>Not tested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jul 17, 2007 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tonyokc]]></name></author>
		<updated>2007-07-17T14:22:11-04:00</updated>

		<published>2007-07-17T14:22:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74487#p74487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74487#p74487"/>
		<title type="html"><![CDATA[Help with List Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74487#p74487"><![CDATA[
There are times I need to op all users with the o flag, so I can check the remaining<br><br>I have a routine to do it, but it fails on nicks with special characters. I know the fix is the "list" command, but I could sure use a bit of help on where to use it<br><br>Any help is appreciated<br><br>Tony<br><div class="codebox"><p>Code: </p><pre><code># accept .opops &lt;channel&gt; from global n to op all bot known opsbind dcc n| opops opopsproc opops {h id chan} {  global botnick  set members [chanlist $chan]  putdcc $id $members  foreach who $members {  if {![isop $who $chan] &amp;&amp; [matchattr [nick2hand $who $chan] o|o $chan] } { lappend opnicks $who }}set dumps [expr {[llength $opnicks]  / 6} ]putdcc $id "op oping $chan"set i 0while { $i &lt; [llength $opnicks]} {    putquick "MODE $chan +oooooo [lrange $opnicks $i [expr {$i + 5} ]]"    set i [expr {$i +6}]  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4907">tonyokc</a> — Tue Jul 17, 2007 2:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
