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

	<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-06-21T19:05:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-21T19:05:00-04:00</updated>

		<published>2002-06-21T19:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8254#p8254</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8254#p8254"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8254#p8254"><![CDATA[
hmm... <br><br>The Channel's peak so far was 42 Users. The bot already had to react to a mass-voice (must have been about 25 users that had to be devoiced) and he did that quite fast.<br><br>The "voicers" script gave voice in "+vvv"-packs, my bot reacted in "-vvvvv"-packs, so it seems he "bundles" the modes that have to be set.<br><br>Hyper<p>Statistics: Posted by Guest — Fri Jun 21, 2002 7:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-06-21T18:26:00-04:00</updated>

		<published>2002-06-21T18:26:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8253#p8253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8253#p8253"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8253#p8253"><![CDATA[
Well, I was looking at it more as being correct than optimized. A simple check if the nicks are the same would help quite a bit I think, but in large +o/v floods that would probably slow the bot down a lot, not too sure about that though.<br><br>Disadvantage of the mass modes are:<br>Being sendQ'ed by the server.<br>The bot using more bandwidth than really nessessary.<br>Unwanted spam filling the channel.<br><br>I would personally like it to just -v or -o instead of -vvvv when someone is voiced or oped a bunch of times, but if people doing mass modes isnt a problem in your channel, then this should work fine. May I ask, does it respond to a -v nick -v nick -v nick -v nick (seperate mode lines) with a -vvv nick or three -v's on seperate mode lines?<br><br>&lt;font size=-1&gt;[ This Message was edited by: tainted on 2002-06-21 16:30 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Fri Jun 21, 2002 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-21T18:23:00-04:00</updated>

		<published>2002-06-21T18:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8252#p8252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8252#p8252"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8252#p8252"><![CDATA[
Well, I think with an -oooo (this is the way it works now).<br>This is fast an does not flood the channel too much.<br>...<br>Is there any disadvantage of this method ?<br>I'm not into IRC-Server-interna or the IRC-protocoll. Would be nice if you could back me up with some information what method should be used and why.<br><br>Thx<br><br>Hypergrip<p>Statistics: Posted by Guest — Fri Jun 21, 2002 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-06-21T14:12:00-04:00</updated>

		<published>2002-06-21T14:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8242#p8242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8242#p8242"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8242#p8242"><![CDATA[
<blockquote class="uncited"><div>On 2002-06-21 06:55, Hypergrip wrote:<br>Hmm... i don't think my english is too bad, but I still don't get the point:<br>What's bad if the Bot reacts to a +oooo with a -oooo ?<br>I mean... is't this what this script is for ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>And why should the server penalize the bot ? for mode-flood ?<br>(the bot devoiced 13 users in 4 lines and was not penalized)<br><br>Greetz<br><br>Hypergrip</div></blockquote>On a modechange "+oooo nick nick nick nick" how would you like your bot to react:<br>- with a "-oooo nick nick nick nick"<br>or<br>- with a "-o nick"<br><br>&lt;font size=-1&gt;[ This Message was edited by: egghead on 2002-06-21 12:19 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Jun 21, 2002 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-21T08:55:00-04:00</updated>

		<published>2002-06-21T08:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8238#p8238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8238#p8238"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8238#p8238"><![CDATA[
Hmm... i don't think my english is too bad, but I still don't get the point:<br>What's bad if the Bot reacts to a +oooo with a -oooo ?<br>I mean... is't this what this script is for ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>And why should the server penalize the bot ? for mode-flood ?<br>(the bot devoiced 13 users in 4 lines and was not penalized)<br><br>Greetz<br><br>Hypergrip<p>Statistics: Posted by Guest — Fri Jun 21, 2002 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-06-20T07:39:00-04:00</updated>

		<published>2002-06-20T07:39:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8201#p8201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8201#p8201"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8201#p8201"><![CDATA[
<blockquote class="uncited"><div>On 2002-06-19 16:28, tainted wrote:<br>I didnt put the script on a bot, but by just glancing through it.. why wouldn't the bot respond to a +vvv with a -vvv? Same would go for a +vov user1 user2 user2 I believe, which by all means is correct. If its voicing the same user, like +vvv user1 user1 user1, then I bet you could compare the three users and if they are the same then just put out one -v mode, and send a bit less data. *shrug*</div></blockquote>Tainted, the point is that in case of e.g. opping, the script may respond to a "+oooooo nick nick nick nick nick nick" with a "-oooooo nick nick nick nick nick nick" or even 6 seperate lines with a -o. Or, to deop both the nick handing out the +o and the nick receiving it, with 6 lines -oo. <br>But worse, the irc server penalizes the bot for it. You may test yourself if and when eggdrop's queuing system removes the extraneous modes. <br>But, if you think it is correct and *shrug* about it, then nevermind. *shrug*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Jun 20, 2002 7:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-06-19T18:36:00-04:00</updated>

		<published>2002-06-19T18:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8196#p8196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8196#p8196"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8196#p8196"><![CDATA[
$botnick<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Wed Jun 19, 2002 6:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-19T18:33:00-04:00</updated>

		<published>2002-06-19T18:33:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8195#p8195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8195#p8195"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8195#p8195"><![CDATA[
Tcl error [opbitch]: can't read "botnick": no such variable<br><br>Uhm.. where was the current nick of the bot stored in again ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Wed Jun 19, 2002 6:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-06-19T18:28:00-04:00</updated>

		<published>2002-06-19T18:28:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8193#p8193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8193#p8193"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8193#p8193"><![CDATA[
I didnt put the script on a bot, but by just glancing through it.. why wouldn't the bot respond to a +vvv with a -vvv? Same would go for a +vov user1 user2 user2 I believe, which by all means is correct. If its voicing the same user, like +vvv user1 user1 user1, then I bet you could compare the three users and if they are the same then just put out one -v mode, and send a bit less data. *shrug*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Wed Jun 19, 2002 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-19T07:17:00-04:00</updated>

		<published>2002-06-19T07:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8163#p8163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8163#p8163"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8163#p8163"><![CDATA[
Thanx, this was a lot of help to me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>Sometimes i'm just too blind to see such easy errors <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>1.) Ok, will be in the next version of the script<br><br>2.) Hmm... The bot will deop himself when he's given op. That's one thing I would not have regognised until it would have been too late <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>3.) As i said... sometimes i'm just too blind to see such easy mistakes. Thanks for your hint.<br><br>4.) I thought a "mass-voice" would automatically broken up into many +v modechanges. Tests with the "buggy" version of this script showed, that the bot reacted to a +vvv with a -vvv. Can anyone back me up with some background information on this ?<br><br>5.) Sure. This was actually planned as next step after solving the "main" problems <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>Thanx a lot for your help !!<br><br>Greetz<br><br>Hyper<br><p>Statistics: Posted by Guest — Wed Jun 19, 2002 7:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-06-18T10:53:00-04:00</updated>

		<published>2002-06-18T10:53:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8137#p8137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8137#p8137"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8137#p8137"><![CDATA[
<blockquote class="uncited"><div>On 2002-06-18 08:18, Hypergrip wrote:<br>argh !<br>Problems again !<br>[snip]</div></blockquote>Hi Hypergrip. There are some problems in the scripts you presented.<br><br>1. You must check that $nick giving ops/voice == $botnick<br><br>2. You must check that the $victim receiving the ops/voice == $botnick<br><br>3. You may carefully recheck what your snippet of code is doing:<br><div class="codebox"><p>Code: </p><pre><code>set h [nick2hand $victim] if {$h == *} {    pushmode $chan -v $victim } else {    if {![matchattr $victim |v $chan]} {       pushmode $chan -v $victim    } }</code></pre></div>First you check for the existence of the handle and then you check for the existence of a flag on a nick, not on a handle.<br><br>4. You may take care of a situation where a user does: +vvv nick nick nick. Your script will trigger on each of these mode changes.<br><br>5. You may check that actually [botisop $chan]<br><br>You can check out:<br><br><a href="http://forum.egghelp.org/viewtopic.php?topic=1290&amp;forum=2" class="postlink">http://forum.egghelp.org/viewtopic.php? ... 90&amp;forum=2</a><br><br>and<br><br><a href="http://members.fortunecity.com/eggheadtcl/strictop.tcl.txt" class="postlink">http://members.fortunecity.com/eggheadt ... op.tcl.txt</a><br><br>&lt;font size=-1&gt;[ This Message was edited by: egghead on 2002-06-18 08:54 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Jun 18, 2002 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-18T10:18:00-04:00</updated>

		<published>2002-06-18T10:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8136#p8136</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8136#p8136"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8136#p8136"><![CDATA[
argh !<br>Problems again !<br><br>the channel is auto-voice.<br>If an user with +v joins the channel, the bot gives him voice.<br>so far, so good.<br>BUT now the voice-bitch-script gevoices the user (WHY THE HELL ?!?) and the we get a channel full of +v -v +v -v +v -v and so on<br>d'oh.<br><br>Any idea where the error might be ?<br><br>Hypergrip<p>Statistics: Posted by Guest — Tue Jun 18, 2002 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-18T10:02:00-04:00</updated>

		<published>2002-06-18T10:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8135#p8135</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8135#p8135"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8135#p8135"><![CDATA[
Thanx, this was one of the two errors in the script.<br>the second one was that the line<br>if {$h == *}<br>has to be<br>if {$h == "*"}<br>now it works just fine.<br><br>But i want to improve the script so that the bot himself may op or voice users.<br>At the current state this is not possible, cause the bot has now flags (or can her have flags ???)<br>Is there a away to check if $nick is the bot himself ?<br><br>Thanx<br><br>Hyper<p>Statistics: Posted by Guest — Tue Jun 18, 2002 10:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-06-18T06:59:00-04:00</updated>

		<published>2002-06-18T06:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8131#p8131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8131#p8131"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8131#p8131"><![CDATA[
try binding *+v instead of just +v. I'm not 100% sure on that, but after a .binds mode, and a quick test, it seems to work.<br><br>..[blah(dcc)] Command bindings:<br>..[blah(dcc)]   TYPE FLGS     COMMAND              HITS BINDING (TCL)<br>..[blah(dcc)]   mode -|-      *+v                     2<br>..[blah(dcc)]   mode -|-      +v                      0<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Tue Jun 18, 2002 6:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-17T18:39:00-04:00</updated>

		<published>2002-06-17T18:39:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8115#p8115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8115#p8115"/>
		<title type="html"><![CDATA[How to deop/devoice users that do not have +o/+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8115#p8115"><![CDATA[
I just stumbles over a guy who helped me a bit writing this script, but although the structure seems to be ok, the bot does NOT react on modechanges <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><br>Perhaps one of ouy caan figure out, why it's not running.<br>here's the script:<br><br># Bitch+ V1.3 by Hypergrip &amp; thommey<br># (=- teamwork roxx -=)<br>#<br># Use ".chanset #channel +voicebitch" or +opbitch to enable this script<br>#<br>#####################################################################<br><br>bind mode - +v voicebitch<br><br>setudef flag voicebitch<br><br>proc voicebitch {nick uhost handle chan change victim} {<br>    if {[lsearch [channel info $chan] "+voicebitch"] == -1} {<br>        return 0<br>    }<br>    <br>    set i [nick2hand $nick]<br>    if {[matchattr $i |m $chan]} {<br>        return 0<br>    }<br><br>    set h [nick2hand $victim]<br>    if {$h == *} {<br> pushmode $chan -v $victim<br>    } else {<br>if {![matchattr $victim |v $chan]} {<br> pushmode $chan -v $victim<br>}<br>    }<br>    putlog "user $nick was devoiced because of missing flag"<br>}<br><br>#####################################################################<br><br>bind mode - +o opbitch<br><br>setudef flag opbitch<br><br>proc opbitch {nick uhost handle chan change victim} {<br>    if {[lsearch [channel info $chan] "+opbitch"] == -1} {<br>        return 0<br>    }<br><br>    set i [nick2hand $nick]<br>    if {[matchattr $i |m $chan]} {<br>        return 0<br>    }<br><br>    set h [nick2hand $victim]<br>    if {$h == *} {<br> pushmode $chan -o $victim<br>    } else {<br>if {![matchattr $victim |o $chan]} {<br> pushmode $chan -o $victim<br>}<br>    }<br>    putlog "user $nick was deopped because of missing flag"<br>}<br><br>#####################################################################<br><br>putlog "Bitch+ V1.3 by Hypergrip &amp; thommey - Loaded"<p>Statistics: Posted by Guest — Mon Jun 17, 2002 6:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
