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

	<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-07-09T23:58:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-09T23:58:54-04:00</updated>

		<published>2004-07-09T23:58:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38404#p38404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38404#p38404"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38404#p38404"><![CDATA[
If you still want to deop, the last nick.<br><br>You can replace this code:<br><div class="codebox"><p>Code: </p><pre><code>  putserv "MODE $chan -oooooo [join $deopnicks]"</code></pre></div>With this code:<br><div class="codebox"><p>Code: </p><pre><code>  putserv "MODE $chan -o $target"</code></pre></div>But then I don't know how this script will react if there<br>are many +ooo modes triggered.<br><br>You can try it to test it out. If you specifically want to<br>deop the last person opped (if he is an extra op).<br><br><br>If you can't even replace it, use this then:<br><div class="codebox"><p>Code: </p><pre><code>set checkchans "#yourchannel" set maxops "8" bind mode - "*+o*" check:ops proc check:ops {nick uhost hand chan mode target} {  global botnick checkchans maxops; set totalops 0  if {($mode == "+o")} {   if {(([lsearch -exact [string tolower $checkchans] [string tolower $chan]] != -1) || ($checkchans == "*"))} {   foreach user [chanlist $chan] {     if {[isop $user $chan]} {      incr totalops       }      }      if {($totalops &gt; $maxops)} {        if {([botisop $chan]) &amp;&amp; ([onchan $target $chan])} {         putserv "MODE $chan -o $target"         putserv "PRIVMSG $chan :$target O Limit de Operadores no Canal e $maxops"        return 0        }       }     }   } } putlog "OpLimit by awyeah - LOADED"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jul 09, 2004 11:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-07-09T20:41:57-04:00</updated>

		<published>2004-07-09T20:41:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38401#p38401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38401#p38401"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38401#p38401"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>yeah i think am with badluck .. this tcl is ugly.. the bot deop the other users.. not who get the last op ... any way!! he make the channel with 8 ops <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> its a step <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> thx anyway<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Fri Jul 09, 2004 8:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-09T02:58:58-04:00</updated>

		<published>2004-07-09T02:58:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38373#p38373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38373#p38373"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38373#p38373"><![CDATA[
The thing is the bot checks the channel list for ops. It does it in an alphabetical manner so if there is an extra op, it would be in the end of the channel lists, with alphabets near to the ending of the abc. And that person will be deoped.<br><br>It will be hard to deop the same target, because some times +o is used and some times +oooooo is used! Then we would individually have to check for each list index if +ooo, or a greater one is used. If they exist and not are "" then the bot can deop them. But then we would have to recheck the channel list, if it is still greater, then deop more people, other<br>wise halt.<br><br>I modified it a little bit. Try this code. If still it seems to deop wrong people then, I guess that's your badluck, heh. It will make sure only 8 people are opped on the channel, and the ones coming in the channel even if they are extra ops doesnt mean they will be specifically deoped, the bot can deop any op, to make the channel it under the op limit.<br><div class="codebox"><p>Code: </p><pre><code>set checkchans "#yourchannel" set maxops "8" bind mode - "*+o*" check:ops proc check:ops {nick uhost hand chan mode target} {  global botnick checkchans maxops   set totalops 0; set list [list]   if {($mode == "+o")} {   if {(([lsearch -exact [string tolower $checkchans] [string tolower $chan]] != -1) || ($checkchans == "*"))} {   foreach user [chanlist $chan] {     if {[isop $user $chan]} {      incr totalops; lappend list $user        }      }      if {($totalops &gt; $maxops)} {       set deopnicks [lrange $list $maxops end]        if {([botisop $chan]) &amp;&amp; ($deopnicks != "")} {         putserv "MODE $chan -oooooo [join $deopnicks]"        putserv "PRIVMSG $chan :$deopnick O Limit de Operadores no Canal e $maxops "; return 0        }      }     }   } } putlog "OpLimit by awyeah - LOADED"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jul 09, 2004 2:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-07-09T02:06:49-04:00</updated>

		<published>2004-07-09T02:06:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38372#p38372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38372#p38372"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38372#p38372"><![CDATA[
hello, i dont know what the problem.. <br>but some times the bot do his jop prefect. <br>and some times he make a mesteks.<br>like deop another op.. not the last who get op<br>or dont deop any one. <br>humm, i think he is crazy.. so what the bug .. am useing this code<br><div class="codebox"><p>Code: </p><pre><code>set checkchans "#Channel"set maxops "8"bind mode -  "*+o" check:opsproc check:ops {nick uhost hand chan mode target} { global botnick checkchans maxops  set totalops 0; set list [list]  if {(([lsearch -exact [string tolower $checkchans] [string tolower $chan]] != -1) || ($checkchans == "*"))} {  foreach user [chanlist $chan] {    if {[isop $user $chan]} {     incr totalops; lappend list $user       }     }     if {($totalops &gt; $maxops)} {      set deopnick [lrange $list $maxops end]       if {([botisop $chan]) &amp;&amp; ($deopnick != "")} {       putserv "MODE $chan -oooooo $deopnick"       putserv "PRIVMSG $chan :$deopnick O Limit de Operadores no Canal e $maxops "       }     }   }}putlog "OpLimit By awyeah - LOADED"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Fri Jul 09, 2004 2:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-08T23:07:32-04:00</updated>

		<published>2004-07-08T23:07:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38371#p38371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38371#p38371"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38371#p38371"><![CDATA[
Yes someone once told me, in the begining when I started, the easiet way to escape special characters, either use a filter or first split and then join the string. However if it is a list I don't think we would need to split it again, just join it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Jul 08, 2004 11:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-07-08T21:53:25-04:00</updated>

		<published>2004-07-08T21:53:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38370#p38370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38370#p38370"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38370#p38370"><![CDATA[
<blockquote class="uncited"><div>Replace these lines:<br><div class="codebox"><p>Code: </p><pre><code>Use: set deopnicks [lrange $list $maxops end]and: putserv "MODE $chan -oooooo $deopnicks"</code></pre></div>This will deop more than one nick. If there are<br>supposingly 10 ops or more. It can deop upto<br>6 people at a time, which is sufficient I think.<br><br>That should do it.</div></blockquote> I can see your thought process, and what you thought you were doing was what you were supposed to be doing, and was a nice attempt.. However, when the putserv is called, that text is (as you know) sent to server... and as I think you intended, deopnicks is a TCL List, which the server won't understand (when there are certain characters in a list, Tcl surrounds that list element with {}'s, and as such, the server will look for nicks with those {}'s around them, and won't find them)... As such, you'll want to make your list a string...<br><div class="codebox"><p>Code: </p><pre><code>putserv "MODE $chan -oooooo [join $deopnicks]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jul 08, 2004 9:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-08T20:58:01-04:00</updated>

		<published>2004-07-08T20:58:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38368#p38368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38368#p38368"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38368#p38368"><![CDATA[
Replace these lines:<br><div class="codebox"><p>Code: </p><pre><code>Use: set deopnicks [lrange $list $maxops end]and: putserv "MODE $chan -oooooo $deopnicks"</code></pre></div>This will deop more than one nick. If there are<br>supposingly 10 ops or more. It can deop upto<br>6 people at a time, which is sufficient I think.<br><br>That should do it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Jul 08, 2004 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-07-08T16:19:46-04:00</updated>

		<published>2004-07-08T16:19:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38364#p38364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38364#p38364"/>
		<title type="html"><![CDATA[awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38364#p38364"><![CDATA[
Hello, another problem.. on my network chanserv give to 2 users ops on the same line.. like<blockquote class="uncited"><div>* ChanServ sets mode: +oo nick1 nick2<br>* botnick sets mode: -o nick1</div></blockquote>so he dont see the nick2 when get op.. he keep the nick2 op.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Thu Jul 08, 2004 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-08T12:10:22-04:00</updated>

		<published>2004-07-08T12:10:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38352#p38352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38352#p38352"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38352#p38352"><![CDATA[
Yeah, that should do it as well.<br>You asked for 8 so I set it to 8.<br>But then I made a variable out of it so<br>users can define their own and forgot to<br>change that.<br><br>I'll release this in the form of a script with<br>more functions and settings in a few days,<br>also same for voices as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Jul 08, 2004 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-07-08T11:41:18-04:00</updated>

		<published>2004-07-08T11:41:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38350#p38350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38350#p38350"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38350#p38350"><![CDATA[
yeah, its working!! thx to all who help to make this good .. "awyeah"<br><br>when i change this.. its working<div class="codebox"><p>Code: </p><pre><code>    set deopnick [lindex $list 8] </code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>    set deopnick [lindex $list $maxops] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Thu Jul 08, 2004 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-07-08T04:44:12-04:00</updated>

		<published>2004-07-08T04:44:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38340#p38340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38340#p38340"/>
		<title type="html"><![CDATA[Re: awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38340#p38340"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Tcl error [check:ops]: invalid command name "inr"</div></blockquote>something rong ?<div class="codebox"><p>Code: </p><pre><code>inr totalops; lappend list $user</code></pre></div></div></blockquote>Yah, change inr to incr.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Thu Jul 08, 2004 4:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-07-08T04:02:50-04:00</updated>

		<published>2004-07-08T04:02:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38339#p38339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38339#p38339"/>
		<title type="html"><![CDATA[awyeah]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38339#p38339"><![CDATA[
<blockquote class="uncited"><div>Tcl error [check:ops]: invalid command name "inr"</div></blockquote>something rong ?<div class="codebox"><p>Code: </p><pre><code>inr totalops; lappend list $user</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Thu Jul 08, 2004 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-08T03:45:03-04:00</updated>

		<published>2004-07-08T03:45:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38338#p38338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38338#p38338"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38338#p38338"><![CDATA[
Ok... here by requesting me alot I've done this script for you. But there still might be errors. Because I have made the script in less than 5 minutes.<br><br>Maybe... syntax errors.<br><div class="codebox"><p>Code: </p><pre><code>#Set channels for this script to work on.#To use all channels the bot is on, set this as "*".set checkchans "#chan1 #chan2"#Set the maximum number of channel ops to allow.#If they are greater than this, then the last one will be deoped.set maxops "8"bind mode - "*+o" check:opsproc check:ops {nick uhost hand chan mode target} { global botnick checkchans maxops  set totalops 0; set list [list]  if {($mode == "+o")} {  if {(([lsearch -exact [string tolower $checkchans] [string tolower $chan]] != -1) || ($checkchans == "*"))} {  foreach user [chanlist $chan] {    if {[isop $user $chan]} {     inr totalops; lappend list $user      }     }     if {($totalops &gt; $maxops)} {     set deopnick [lindex $list 8]     if {([botisop $chan]) &amp;&amp; ($deopnick != "")} {      putserv "MODE $chan -o $deopnick"     putserv "PRIVMSG $deopnick :&lt;your message here&gt;"    }   }  } } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Jul 08, 2004 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-07T21:57:09-04:00</updated>

		<published>2004-07-07T21:57:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38332#p38332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38332#p38332"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38332#p38332"><![CDATA[
Yeah it happens.<br><br>Set the variable:<br><br>set chanservices "<a href="mailto:chanserv@your.network.services">chanserv@your.network.services</a>"<br>instead of setting it "chanserv".<br><br>For example on DALnet, I use:<br><div class="codebox"><p>Code: </p><pre><code>set chanservices "chanserv@services.dal.net"</code></pre></div>Or maybe you can replace:<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $chanservices :OP $channel $botnick" </code></pre></div>With the code:<br><div class="codebox"><p>Code: </p><pre><code>putserv "$chanservices OP $channel $botnick" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 07, 2004 9:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-07-07T17:00:01-04:00</updated>

		<published>2004-07-07T17:00:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38327#p38327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38327#p38327"/>
		<title type="html"><![CDATA[Op Limit]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38327#p38327"><![CDATA[
About the <strong class="text-strong">'ChanServ Auto Reop Script' by awyeah</strong><br>the services on my network dont accept msgs .. <br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $chanservices :OP $channel $botnick" </code></pre></div><blockquote class="uncited"><div>-irc.brasnet.org- For this service please use /ChanServ</div></blockquote>so what i have to change on the autoreop.tcl to work...<br><br>and about the op limit.. plz help me to write the code.<br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Wed Jul 07, 2004 5:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
