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

	<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>2015-06-06T16:28:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2015-06-06T16:28:55-04:00</updated>

		<published>2015-06-06T16:28:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104216#p104216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104216#p104216"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104216#p104216"><![CDATA[
I had to comment out the global sv and I had put the set sv(maxdelay) 10<br>inside the proc for it to work.<br>Thanks for the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Sat Jun 06, 2015 4:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-06-06T15:42:26-04:00</updated>

		<published>2015-06-06T15:42:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104215#p104215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104215#p104215"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104215#p104215"><![CDATA[
As the error clearly states: can't read "sv(maxdelay)": no such variable<br><br>Set that variable in the global namespace to stop that error...<br><div class="codebox"><p>Code: </p><pre><code>set sv(maxdelay) 10proc automode:join { nick uhost handle chan } {    global sv    if {[channel get $chan "op"] &amp;&amp; [isop $::botnick $chan]} {       pushmode $chan +o $nick    } elseif {[channel get $chan "voice"] &amp;&amp; [isop $::botnick $chan]} {       utimer [rand [expr $sv(maxdelay) + 1]] [list push $chan $nick]    } else {       return 0    } } proc push {chan nick} {    if {![botisop $chan]} return    if {[isvoice $nick $chan]} return    pushmode $chan +v $nick } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jun 06, 2015 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[vigilant]]></name></author>
		<updated>2015-06-06T13:06:01-04:00</updated>

		<published>2015-06-06T13:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104214#p104214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104214#p104214"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104214#p104214"><![CDATA[
[12:01:47 pm] &lt;leet&gt; [19:01:41] Tcl error [automode:join]: can't read "sv(maxdelay)": no such variable<br><br>Can anyone tell me how to fix this error?<br><br>The whole script is below:<br><div class="codebox"><p>Code: </p><pre><code>proc automode:join { nick uhost handle chan } {global sv if {[channel get $chan "op"] &amp;&amp; [isop $::botnick $chan]} {pushmode $chan +o $nick} elseif {[channel get $chan "voice"] &amp;&amp; [isop $::botnick $chan]} {utimer [rand [expr $sv(maxdelay) + 1]] [list push $chan $nick] } else {return 0}}proc push {chan nick} {    if {![botisop $chan]} return    if {[isvoice $nick $chan]} return     pushmode $chan +v $nick} </code></pre></div>I am trying to a random delay. I want between 10 and 30 seconds. This I assume adds any random delay, but I Don't know what's the min and max. I hope someone can fix this script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7195">vigilant</a> — Sat Jun 06, 2015 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bryanwny]]></name></author>
		<updated>2012-09-21T16:47:29-04:00</updated>

		<published>2012-09-21T16:47:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100034#p100034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100034#p100034"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100034#p100034"><![CDATA[
Even without ANY scripts loaded, whether i do chattr +g to a user on an -autovoice channel, or chattr +v on an +autovoice channel, it won't let me devoice them.  It gives it right back.  <br><br><br>AllProtection is the main script I use, but I commented it out in the .conf and .rehash'd the bot.  <br><br>&lt;bot&gt; [16:43:41] AllProtection v4.7 successfully unloaded...<br><br>Still does it.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><br><br>EDIT:  It DOES load the following tcl's, but they came with the eggdrop and I figured they weren't an issue:<br><br>source scripts/alltools.tcl<br>source scripts/action.fix.tcl<br>source scripts/dccwhois.tcl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12079">bryanwny</a> — Fri Sep 21, 2012 4:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-09-19T00:16:06-04:00</updated>

		<published>2012-09-19T00:16:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100031#p100031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100031#p100031"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100031#p100031"><![CDATA[
It shouldn't re-voice any user, so this means you must have some other script that's doing this stuff. Could you unload all your scripts then see if this behavior still happens?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Sep 19, 2012 12:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bryanwny]]></name></author>
		<updated>2012-09-18T10:49:48-04:00</updated>

		<published>2012-09-18T10:49:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100029#p100029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100029#p100029"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100029#p100029"><![CDATA[
[10:47am] &lt;bot&gt; Protect modes (chanmode): +tn<br>[10:47am] &lt;bot&gt; Idle Kick after (idle-kick): DON'T!<br>[10:47am] &lt;bot&gt; stopnethack: DON'T!<br>[10:47am] &lt;bot&gt; aop-delay: 0:0<br>[10:47am] &lt;bot&gt; revenge-mode: 0<br>[10:47am] &lt;bot&gt; ban-type: 2<br>[10:47am] &lt;bot&gt; ban-time: 120<br>[10:47am] &lt;bot&gt; exempt-time: 60<br>[10:47am] &lt;bot&gt; invite-time: 60<br>[10:47am] &lt;bot&gt; Other modes:<br>[10:47am] &lt;bot&gt; -inactive -statuslog -secret +shared<br>[10:47am] &lt;bot&gt; -greet -seen +cycle +dontkickops<br>[10:47am] &lt;bot&gt; -protectops -protectfriends -revenge -revengebot<br>[10:47am] &lt;bot&gt; -bitch -autoop -autovoice -nodesynch<br>[10:47am] &lt;bot&gt; -enforcebans +dynamicbans +userbans -autohalfop<br>[10:47am] &lt;bot&gt; -protecthalfops -static<br>[10:47am] &lt;bot&gt; +dynamicexempts +userexempts +dynamicinvites +userinvites<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12079">bryanwny</a> — Tue Sep 18, 2012 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-09-17T00:30:49-04:00</updated>

		<published>2012-09-17T00:30:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100026#p100026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100026#p100026"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100026#p100026"><![CDATA[
Meh.. I should get a break from work. You get that error cos there isn't a +bitchvoice channel flag. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Could you paste the channel modes of the channel you have issues with devoicing a user known to the bot, where it voices back that user?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Sep 17, 2012 12:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bryanwny]]></name></author>
		<updated>2012-09-16T17:54:13-04:00</updated>

		<published>2012-09-16T17:54:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100024#p100024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100024#p100024"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100024#p100024"><![CDATA[
Running v1.6.21.  Is there really such a thing as +bitchvoice?  lol.  I thought I was just making that up because that's how it's acting  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12079">bryanwny</a> — Sun Sep 16, 2012 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-09-16T13:25:10-04:00</updated>

		<published>2012-09-16T13:25:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100022#p100022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100022#p100022"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100022#p100022"><![CDATA[
Don't know what's with the error you get.. what version of eggdrop are you using?<br><br>As for the second code it's meant to replace the timevoice.tcl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 16, 2012 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bryanwny]]></name></author>
		<updated>2012-09-15T23:41:10-04:00</updated>

		<published>2012-09-15T23:41:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100020#p100020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100020#p100020"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100020#p100020"><![CDATA[
OK, I'm not sure if I'm doing it correctly, but I created 'bitchvoice.tcl' and pasted your first chunk of code in it, and added it to my bots config, and verified it is loading because I added a 'putlog' line at the bottom.<br><br>When I added a temp channel, I was able to set it to +autovoice, but not +bitchvoice.  I get the following error:<br><div class="codebox"><p>Code: </p><pre><code>"Error trying to set +bitchvoice for #testing123, invalid mode."</code></pre></div>Was your second code to replace what was in the timevoice.tcl script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12079">bryanwny</a> — Sat Sep 15, 2012 11:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-09-17T00:25:06-04:00</updated>

		<published>2012-09-12T08:03:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100011#p100011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100011#p100011"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100011#p100011"><![CDATA[
Upon joining a <em class="text-italics">+autovoice</em> channel any guest that matches a +v user (on that channel or +g that means globally) he will be automatically voiced by the bot's internal function that was designed especially for this.<br><br>The <em class="text-italics">+bitchvoice</em> channel flag will re-voice the +v users right away as this is the purpose of the flag. From what I understand you wish to stop this behavior. I think that a bind mode on a -v with a return should stop this. Haven't tested anything so let me know if it works or it doesn't.<div class="codebox"><p>Code: </p><pre><code>bind mode "% -v" bitch:voiceproc bitch:voice {nick uhost hand chan victim} {if {[channel get $chan +bitchvoice]} return 1}</code></pre></div>In order to test my theory just set a temporary channel to +autovoice and +bitchvoice, create a temporary user that has the +v flag, add a host to it, join the channel, let the bot voice it then devoice the user and see what happens.<br><br>If all work as you wanted then you can remove the timevoice.tcl script, that is anyway poorly written. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>here is a cleaner version of the above code. the only difference from this and the already built-in funcion (the +autovoice) is that has a random delay in executing the +v mode change, that's all.<div class="codebox"><p>Code: </p><pre><code>bind join - * sv:joinproc sv:join {nick host hand chan} {global svif {[isbotnick $nick] || ![botisop $chan]} returnif {[lsearch -nocase $chan $sv(avchan)] == -1} returnif {![isvoice $nick $chan]} {utimer [rand [expr $sv(maxdelay) + 1]] [list pushmode $chan +v $nick]}}</code></pre></div>PS: Haven't tested anything so let me know if you get any errors.<br><br>Edit: fixed minor type. It should be <em class="text-italics">-nocase</em>, not <em class="text-italics">--nocase</em>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Sep 12, 2012 8:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bryanwny]]></name></author>
		<updated>2012-09-10T16:30:13-04:00</updated>

		<published>2012-09-10T16:30:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100003#p100003</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100003#p100003"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100003#p100003"><![CDATA[
I seem to have made it work by using <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=712" class="postlink">timevoice.tcl</a> and changing from:<br><div class="codebox"><p>Code: </p><pre><code> if {$avchan == "" &amp;&amp; [botisop $chan]} {</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>  if {$avchan == "" &amp;&amp; [botisop $chan] &amp;&amp; [matchattr $hand v|v $chan]} {</code></pre></div>and from:<div class="codebox"><p>Code: </p><pre><code>  if {$i == $chan &amp;&amp; [botisop $chan]} {</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>  if {$i == $chan &amp;&amp; [botisop $chan] &amp;&amp; [matchattr $hand v|v $chan]} {</code></pre></div>Not sure if that's the best way to handle it or not, but at least it's working.  If someone else has a better method, I'm all ears!   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12079">bryanwny</a> — Mon Sep 10, 2012 4:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bryanwny]]></name></author>
		<updated>2012-09-09T22:57:16-04:00</updated>

		<published>2012-09-09T22:57:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100001#p100001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100001#p100001"/>
		<title type="html"><![CDATA[Voice/Devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100001#p100001"><![CDATA[
I'm not sure if maybe I'm just missing something that's already built into eggdrop (I haven't messed with one in 10+ years), but what I'm looking to do is:<br><br>Voice users (NOT just based off of nick; but *!*ident@host or *!*@host) upon joining with a certain flag (+v).  The problem I seem to be having with using +v/autovoice or +g is that it won't let me devoice them.  Even as the bot owner, it just re-voices them right away like there's a +bitchvoice mode enabled.  Am I missing something, or do I need to find a script to handle this?  Ideally, I'd like it to devoice them after 60 minutes of inactivity, but I did find a script to accomplish that already.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12079">bryanwny</a> — Sun Sep 09, 2012 10:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
