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

	<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>2009-12-04T23:07:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-12-04T23:07:22-04:00</updated>

		<published>2009-12-04T23:07:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91200#p91200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91200#p91200"/>
		<title type="html"><![CDATA[Voice IT (veryvery low script)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91200#p91200"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub vgmn|vgmn .up pub:voicebind pub vgmn|vgmn .down pub:voiceproc pub:voice {nick host hand chan text} {   switch -- $::lastbind {     ".up" { set voice "+" }     ".down" { set voice "-" }   }   if {[info exists voice]} {      set target $nick      if {[matchattr $hand mn|mn $chan]} {         if {[string length [lindex [split $text] 0]]} {            set target [lindex [split $text] 0]         }      }      pushmode $chan ${voice}v $target   }}</code></pre></div>You should allow either +v or +g flags , this allows both the voice mechanisms eggdrop uses. This also expands the idea to allow master/owners (+m/+n) to move users up or down.<br><blockquote class="uncited"><div>&lt;nick&gt; .up<br>* bot sets mode: +v nick<br>&lt;+nick&gt; it works :<strong class="text-strong"></strong>)<br>&lt;@owner&gt; .down nick<br>* bot sets mode: -v nick<br>&lt;nick&gt; :<strong class="text-strong"></strong>(<br>&lt;nick&gt; .down owner<br>&lt;nick&gt; won't work for me :<strong class="text-strong"></strong>(((<br>&lt;@owner&gt; .up nick<br>* bot sets mode: +v nick<br>&lt;@owner&gt; .up<br>* bot sets mode: +v owner<br>&lt;+@owner&gt; only for me :<strong class="text-strong"></strong>P</div></blockquote>Also, a final note: Ditch the "return 1" it has no purpose. All it does is cause users to wonder, "Why doesn't my eggdrop log things???!" or the better one, "Why can't I stack pubms to everything said (*)???!!!" .. The answers to both of those is somewhere some script is returning 1 to a bind...<br><br>"return 1" is the retarded cousin of "args". I imagine more than likely that, "return 1" and "args" are also inbred incestual cousins... <br>But being serious now, both of these "special" parameters are barely documented leading to confusion over the cause and cure. Which in turn makes a small problem larger, and hair pulling more frequent. To avoid these headaches (visible bracings and console/log/pubm/msgm problems) proactively limit your use of "return 1" or "args" to exceptional cases that require it, not just for purposelessness. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br># now talking in eggdrop<br>&lt;args&gt; let's have sex<br>&lt;return_1&gt; okay<br>&lt;speechles&gt; lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri Dec 04, 2009 11:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-12-04T17:48:27-04:00</updated>

		<published>2009-12-04T17:48:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91194#p91194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91194#p91194"/>
		<title type="html"><![CDATA[Voice IT (veryvery low script)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91194#p91194"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> bind pub v|v .voice pub:voice proc pub:voice {nick host hand chan text} {  pushmode $chan +v $nick  return 1 }</code></pre></div> should do the job, if i am reading your post correctly <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=8130">TCL_no_TK</a> — Fri Dec 04, 2009 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hardliner]]></name></author>
		<updated>2009-11-23T14:12:47-04:00</updated>

		<published>2009-11-23T14:12:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91045#p91045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91045#p91045"/>
		<title type="html"><![CDATA[Voice IT (veryvery low script)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91045#p91045"><![CDATA[
Hello, at first my english is not really good <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> iam comming form German, but now to the Script<br><br>I Search an TCL script for voice, but not autovoice.<br><br>Example:<br><br>Testuser: .voice<br>Testbot: +v Testuser (<a href="mailto:Testuser@host.u.now.me.de">Testuser@host.u.now.me.de</a>]<br>+Testuser: hey it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>but not with names, i will that bot accept the voice only when he is saved at the bot. But not with name, i will it with host or with Auth...<br><br>it this posible?<br><br>Sry for my bad english <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>THX alot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10978">Hardliner</a> — Mon Nov 23, 2009 2:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
