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

	<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-06-25T07:01:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-25T07:01:52-04:00</updated>

		<published>2004-06-25T07:01:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37855#p37855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37855#p37855"/>
		<title type="html"><![CDATA[fixing loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37855#p37855"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - `power pub:powerproc pub:power { nick host hand channel args } {  set test [chanlist $channel]# The channels bot is in  set reg($channel) 0  for { set number 0 } { $number &lt; [llength $test] } { incr number } {    if {[botisin [lindex $test $number] $channel]} {       incr reg($channel)     }  }# The channels bot is op  set ops($channel) 0  for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[botisop [lindex $test $number] $channel]} {        incr ops($channel)      }    }# The number of users are in chan with bot  set usera($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[nickisin [lindex $test $number] $channel]} {        incr usera($channel)      }    } # The number of users are in chan with bot with no op  set usern($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {![isop $nick $channel] } {incr usern($channel)      }    }puhelp "PRIVMSG $channel :I'm oped in $ops($channel) channels out of $reg($channel), \    and can fool around with $usern($channel) of $usera($channel)  } return 0}}</code></pre></div>Could this work? i was trying to make it, so i can user "expr" for calculations, but i had no idea how to put it in there, but i took a wild guess.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Fri Jun 25, 2004 7:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-06-24T09:01:16-04:00</updated>

		<published>2004-06-24T09:01:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37799#p37799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37799#p37799"/>
		<title type="html"><![CDATA[fixing loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37799#p37799"><![CDATA[
Should work <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=3672">KrzychuG</a> — Thu Jun 24, 2004 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-24T08:10:14-04:00</updated>

		<published>2004-06-24T08:10:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37795#p37795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37795#p37795"/>
		<title type="html"><![CDATA[fixing loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37795#p37795"><![CDATA[
ty <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>could this work<br><div class="codebox"><p>Code: </p><pre><code>bind pub - `ops pub:opsproc pub:ops { nick host hand channel args } {    set test [chanlist $channel]    set ops($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[isop [lindex $test $number] $channel]} {        incr ops($channel)      }    }#line added  set voice($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[isvoice [lindex $test $number] $channel]} {        incr voice($channel)      }    }#end of line    set operators($channel) 0    foreach nick [userlist o] {      if {[onchan [hand2nick $nick] $channel]} {        incr operators($channel)      }    }    puthelp "PRIVMSG $channel :There are currently $ops($channel) people opped and\      $operators($channel) operators in $channel."  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 24, 2004 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-24T08:09:38-04:00</updated>

		<published>2004-06-24T08:09:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37794#p37794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37794#p37794"/>
		<title type="html"><![CDATA[fixing loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37794#p37794"><![CDATA[
ty <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>could this work<br><div class="codebox"><p>Code: </p><pre><code>bind pub - `ops pub:opsproc pub:ops { nick host hand channel args } {    set test [chanlist $channel]    set ops($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[isop [lindex $test $number] $channel]} {        incr ops($channel)      }    }  [b]  set voice($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } {      if {[isvoice [lindex $test $number] $channel]} {        incr voice($channel)[/b]      }    }    set operators($channel) 0    foreach nick [userlist o] {      if {[onchan [hand2nick $nick] $channel]} {        incr operators($channel)      }    }    puthelp "PRIVMSG $channel :There are currently $ops($channel) people opped and\      $operators($channel) operators in $channel."  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 24, 2004 8:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-06-24T07:05:54-04:00</updated>

		<published>2004-06-24T07:05:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37791#p37791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37791#p37791"/>
		<title type="html"><![CDATA[fixing loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37791#p37791"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - `ops pub:ops proc pub:ops { nick host hand channel args } {     set test [chanlist $channel]     set ops($channel) 0     for { set number 0 } { $number &lt; [llength $test] } { incr number } {       if {[isop [lindex $test $number] $channel]} {         incr ops($channel)       }     }     set operators($channel) 0     foreach nick [userlist o] {       if {[onchan [hand2nick $nick] $channel]} {         incr operators($channel)       }     }     puthelp "PRIVMSG $channel :There are currently $ops($channel) people opped and\       $operators($channel) operators in $channel."   }   return 0 }</code></pre></div>Check this code <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=3672">KrzychuG</a> — Thu Jun 24, 2004 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-24T06:43:30-04:00</updated>

		<published>2004-06-24T06:43:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37790#p37790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37790#p37790"/>
		<title type="html"><![CDATA[fixing loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37790#p37790"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> bind pub - `ops pub:opsproc pub:ops { nick host hand args } {  set channels "[channels]"  while { $channels != "" } {    set channel [lindex $channels 0]    set test [chanlist $channel]    set ops($channel) 0    for { set number 0 } { $number &lt; [llength $test] } { incr number } { if {[isop [lindex $test $number] $channel]} {   incr ops($channel) }    }    set operators($channel) 0    foreach nick [userlist o] { if {[onchan [hand2nick $nick] $channel]} {   incr operators($channel) }    }    puthelp "PRIVMSG $channel :There are currently $ops($channel) people opped and\      $operators($channel) operators in $channel."    set channels [lreplace $channels 0 0]  }  return 0} </code></pre></div>Is there a way i can make this msg the chan where i typed `ops, because right now, it's msging all the chanes that it's in.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 24, 2004 6:43 am</p><hr />
]]></content>
	</entry>
	</feed>
