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

	<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>2003-07-03T18:55:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-03T18:55:12-04:00</updated>

		<published>2003-07-03T18:55:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22978#p22978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22978#p22978"/>
		<title type="html"><![CDATA[+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22978#p22978"><![CDATA[
Ok got it thanks! <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 Guest — Thu Jul 03, 2003 6:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-02T17:18:00-04:00</updated>

		<published>2003-07-02T17:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22914#p22914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22914#p22914"/>
		<title type="html"><![CDATA[+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22914#p22914"><![CDATA[
<blockquote class="uncited"><div>I'm not sure what some of the lines does esp these few lines.<div class="codebox"><p>Code: </p><pre><code>scan $cNv(msgs:time) %i:%i num sec    lappend cNv($c,$u) [expr {[clock seconds]+$sec}]    if {[llength $cNv($c,$u)]&gt;=$num} {       set ts $cNv($c,$u); set cNv($c,$u) {}       foreach ts $ts {          if {$ts&gt;[clock seconds]} {lappend cNv($c,$u) $ts}       } </code></pre></div></div></blockquote>The scan extracts the integers from the string stored in the variable and put them into 'num' and 'sec' for easy access later in the script.<br><br>The concept of the counting mechanism is a list of timestamps of when people say something in the channel..if the length of this list becomes &gt;= the voice threshold you specified the values in this list is further investigated. Values that have expired are deleted. (or rather..all values are deleted and only the non-expired ones are added back)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 02, 2003 5:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-02T17:12:53-04:00</updated>

		<published>2003-07-02T17:12:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22913#p22913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22913#p22913"/>
		<title type="html"><![CDATA[+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22913#p22913"><![CDATA[
<blockquote class="uncited"><div>if I'm going to make the bot not to +v users that are on certain channel (ban channel that the bot is not in) should i add these?</div></blockquote>If your bot is not on the channel, 'onchan' won't work. The only way to find out is by doing a /whois on the user and that would be an entirely different matter. This can't be done on-the-fly inside the cNv proc because you have to send the whois request and then wait for the response from the irc server. The best thing would be to add a whois proc that does /whois on the last joiners on a set time interval then check if they're in the banned channel(s) and exempt them from voicing some how.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 02, 2003 5:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-02T17:02:31-04:00</updated>

		<published>2003-07-02T17:02:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22911#p22911</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22911#p22911"/>
		<title type="html"><![CDATA[+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22911#p22911"><![CDATA[
I think if u add this code:<div class="codebox"><p>Code: </p><pre><code>if {([string match $c "#chan"])} {return 0}</code></pre></div>before the <strong class="text-strong">if {[llength...</strong>. it should work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 02, 2003 5:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-02T14:28:17-04:00</updated>

		<published>2003-07-02T14:28:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22907#p22907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22907#p22907"/>
		<title type="html"><![CDATA[+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22907#p22907"><![CDATA[
First of all thanks for the code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> , and yes, I'm not sure what some of the lines does esp these few lines.<br><div class="codebox"><p>Code: </p><pre><code>scan $cNv(msgs:time) %i:%i num sec    lappend cNv($c,$u) [expr {[clock seconds]+$sec}]    if {[llength $cNv($c,$u)]&gt;=$num} {       set ts $cNv($c,$u); set cNv($c,$u) {}       foreach ts $ts {          if {$ts&gt;[clock seconds]} {lappend cNv($c,$u) $ts}       } </code></pre></div>and if I'm going to make the bot not to +v users that are on certain channel (ban channel that the bot is not in) should i add these?<br><div class="codebox"><p>Code: </p><pre><code>if {[isvoice $n $c]||[isop $n $c]||[onchan $n #abc]} return </code></pre></div><p>Statistics: Posted by Guest — Wed Jul 02, 2003 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-01T21:46:57-04:00</updated>

		<published>2003-07-01T21:46:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22861#p22861</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22861#p22861"/>
		<title type="html"><![CDATA[I was bored...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22861#p22861"><![CDATA[
...so if you still need it, here's something to start with<br>(cNv == count'n'voice <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">)<div class="codebox"><p>Code: </p><pre><code>set cNv(msgs:time) 5:60bind pubm - "#chan *" cNvproc cNv {n u h c a} {if {[isvoice $n $c]||[isop $n $c]} returnglobal cNvscan $cNv(msgs:time) %i:%i num seclappend cNv($c,$u) [expr {[clock seconds]+$sec}]if {[llength $cNv($c,$u)]&gt;=$num} {set ts $cNv($c,$u); set cNv($c,$u) {}foreach ts $ts {if {$ts&gt;[clock seconds]} {lappend cNv($c,$u) $ts}}if {[llength $cNv($c,$u)]&gt;=$num} {pushmode $c +v $n; unset cNv($c,$u)}}}</code></pre></div>Instead of polluting the code with comments I thought I'd let you ask questions to keep me entertained.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Jul 01, 2003 9:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-27T14:47:03-04:00</updated>

		<published>2003-06-27T14:47:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22648#p22648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22648#p22648"/>
		<title type="html"><![CDATA[+v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22648#p22648"><![CDATA[
Is there any tcl out there that voice users when they say about 5lines of text in under 1 min instead of juz a line.<br><br>If there isn't any, what will I need to do? Pls give pointers cos I'm new with this tcl stuff.<br><br>Thanks<p>Statistics: Posted by Guest — Fri Jun 27, 2003 2:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
