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

	<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>2008-08-28T09:20:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-08-28T09:20:00-04:00</updated>

		<published>2008-08-28T09:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84887#p84887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84887#p84887"/>
		<title type="html"><![CDATA[Autovoice help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84887#p84887"><![CDATA[
Ahh, should've read the docs on alltools.tcl a bit more throughout..<br><br>utimerexists returns a timer-id or empty string, not boolean apparently; updating my previous post to take care of that matter..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Aug 28, 2008 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2008-08-28T01:11:09-04:00</updated>

		<published>2008-08-28T01:11:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84880#p84880</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84880#p84880"/>
		<title type="html"><![CDATA[Autovoice help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84880#p84880"><![CDATA[
Ok i fixed the if it had a } at the end of:  ![botisop $chan] now i get the error: [22:02] Tcl error [join:allvoice]: can't use empty string as operand of "!" and it won't voice for nothing<br><div class="codebox"><p>Code: </p><pre><code>bind join - * join:allvoiceproc join:allvoice {nick uhost hand chan} { if {[isbotnick $nick] || ![botisop $chan] || ![channel get $chan allvoice]} {  return 0 } pushdelaymode $chan +v $nick if {![utimerexists [list flushdelaymode [string tolower $chan]]]} {  utimer 10 [list flushdelaymode [string tolower $chan]] }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Thu Aug 28, 2008 1:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-08-28T09:20:23-04:00</updated>

		<published>2008-08-27T08:45:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84864#p84864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84864#p84864"/>
		<title type="html"><![CDATA[Autovoice help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84864#p84864"><![CDATA[
Unfortunately, flushmode is called implicitly as the event-trigger ends, so you would still end up with one voice at a time. This would require a separate queue of modes (voicing) to be done, with a timer/utimer or time bind event to do the actual voicing.<br><br><strong class="text-strong">Edit:</strong><br>Had some time to implement a delayed version that should work with pushmode/flushmode. This script depends on the alltools.tcl script included with eggdrop. The voicing will be delayed 10 seconds from the first join; and subsequent joins the following 10 seconds will be grouped for voicing.<br><div class="codebox"><p>Code: </p><pre><code>proc pushdelaymode {args} { global delaymodequeue if {[llength $args] &gt; 3 || [llength $args] &lt; 2} {  error {wrong # of args: should be "pushdelaymode channel mode ?arg?"} } lappend delaymodequeue [lrange $args 0 2]}proc flushdelaymode {channel} { global delaymodequeue if {![info exists delaymodequeue]} {  return 0 } for {set i 0} {$i &lt; [llength $delaymodequeue]} {} {  set item [lindex $delaymodequeue $i]  if {[string match -nocase $channel [lindex $item 0]]} {   eval [linsert $item 0 "pushmode"]   set delaymodequeue [lreplace $delaymodequeue $i $i]  } {   incr i  } }}setudef flag allvoicebind join - * join:allvoiceproc join:allvoice {nick uhost hand chan} { if {[isbotnick $nick] || ![botisop $chan]} || ![channel get $chan allvoice]} {  return 0 } pushdelaymode $chan +v $nick if {[utimerexists [list flushdelaymode [string tolower $chan]]] == ""} {  utimer 10 [list flushdelaymode [string tolower $chan]] }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Aug 27, 2008 8:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-08-27T08:40:23-04:00</updated>

		<published>2008-08-27T08:40:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84863#p84863</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84863#p84863"/>
		<title type="html"><![CDATA[Autovoice help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84863#p84863"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag allvoicebind join - * join:allvoiceproc join:allvoice {nick uhost hand chan} {  if {[isbotnick $nick] || ![botisop $chan]} || ![channel get $chan allvoice]} {    return 0  }  pushmode $chan +v $nick}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Aug 27, 2008 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2008-08-26T22:33:50-04:00</updated>

		<published>2008-08-26T22:33:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84856#p84856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84856#p84856"/>
		<title type="html"><![CDATA[Autovoice help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84856#p84856"><![CDATA[
Hi.<br><br>I'm trying to make this script do +vvvv then just one voice per line i want it to do 4 heres what it does: <br><div class="codebox"><p>Code: </p><pre><code>03[09:24:56] * Fearless sets mode: +v Ps203[09:24:59] * Fearless sets mode: +v CIA-003[09:25:01] * Fearless sets mode: +v grass03[09:25:02] * Fearless sets mode: +v gta4^003[09:25:05] * Fearless sets mode: +v bush`03[09:25:07] * Fearless sets mode: +v Billgates</code></pre></div>And i want it to do: fearless sets mode: +vvvv nick1 nick2 nick3 nick4<br>and they all joined at once..<br><div class="codebox"><p>Code: </p><pre><code>setudef flag allvoicebind join - * *join:allvoiceproc *join:allvoice {nick uhost hand chan} {  if {[isbotnick $nick] || ![botisop $chan]} {    return 0  }  foreach setting [channel info $chan] {    if {[regexp -- {^[\+-]} $setting]} {      if {![string compare "+allvoice" $setting]} {        putserv "mode $chan +v $nicks"      }    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Tue Aug 26, 2008 10:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
