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

	<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>2005-11-22T00:01:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-22T00:01:23-04:00</updated>

		<published>2005-11-22T00:01:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57622#p57622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57622#p57622"/>
		<title type="html"><![CDATA[Auto Voice after Certain lines in Certain Time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57622#p57622"><![CDATA[
you unset the array element which you later try to decrement in [utimer]<br><br>some tips:<ul><li>don't use [lsearch] on [channel info], use [channel get]</li><li>don't use [putserv], use [pushmode]; it will automatically pack several modes on single line as necessary</li><li>your script logic is flawed; get rid of [utimer] and <em class="text-italics">vline</em>, you don't use those correctly anyway</li></ul>in general, your script (even properly implemented) is useless; voicing someone who can speak already is pointless<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Nov 22, 2005 12:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Romeyo]]></name></author>
		<updated>2005-11-21T14:37:12-04:00</updated>

		<published>2005-11-21T14:37:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57621#p57621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57621#p57621"/>
		<title type="html"><![CDATA[Auto Voice after Certain lines in Certain Time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57621#p57621"><![CDATA[
I have modified the auto voice after talking some lines. And added udef flag for matching channels and unset the variable after voicing them but i am getting error... The script is as follows:<br><div class="codebox"><p>Code: </p><pre><code># Set Number of lines for the bot to voiceset vline 4# Set in max number of seconds here.set vsec 25setudef flag voicebind pubm - * voice:userproc voice:user {nick uhost hand chan arg} {global actvoice vline vsec  if {([isop $nick $chan]) || ([isvoice $nick $chan])} {return 0}  if {[lsearch -exact [channel info $chan] +voice] == -1} {return 0}  if {![info exists actvoice([string tolower $nick])]} { set actvoice([string tolower $nick]) 0 }  incr actvoice([string tolower $nick])  utimer $vsec [list incr actvoice([string tolower $nick]) -1]  if {$actvoice([string tolower $nick]) &gt;= $vline} {    putserv "MODE $chan +v $nick"    unset actvoice([string tolower $nick]) }}</code></pre></div>the error i am getting from the bot in party line after voicing is as follows:<blockquote class="uncited"><div>[12:29] #THRRaaga: mode change '+v Romeyo' by THRraaga!<a href="mailto:rakesh@stand.up.for.the.mast3r.com">rakesh@stand.up.for.the.mast3r.com</a><br>[12:29] Tcl error in script for 'timer366':<br>[12:29] can't read "actvoice(romeyo)": no such element in array<br>[12:29] Tcl error in script for 'timer367':<br>[12:29] can't read "actvoice(romeyo)": no such element in array<br>[12:29] Tcl error in script for 'timer368':<br>[12:29] can't read "actvoice(romeyo)": no such element in array<br>[12:30] Tcl error in script for 'timer369':<br>[12:30] can't read "actvoice(romeyo)": no such element in array</div></blockquote>Help me... <br>Thanks... <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=6915">Romeyo</a> — Mon Nov 21, 2005 2:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
