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

	<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>2022-05-23T12:28:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-05-23T12:28:59-04:00</updated>

		<published>2022-05-23T12:28:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111152#p111152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111152#p111152"/>
		<title type="html"><![CDATA[Re: +v on &quot;x&quot; lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111152#p111152"><![CDATA[
mvp1,<br><blockquote class="uncited"><div>Any chance this would work for more than one exceptions nick? e.g specificnick1 , specificnick2 and so on.. if I only change below as? <br><br>set exemptmasks {specificnick1!*@* specificnick2!*@* specificnick3!*@*}</div></blockquote><br>That is exactly how the exemptmasks setting works:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon May 23, 2022 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-23T09:49:02-04:00</updated>

		<published>2022-05-23T09:49:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111151#p111151</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111151#p111151"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111151#p111151"><![CDATA[
it would probably be a good idea as Spartan suggested to add a check how long the nick has been in channel for example 5 or 10 min  to make sure abusers and flooders dont get voiced altho abusers and flooders can be in channel after 5 or 10 min but usually they join and want to abuse/flood right away and therefor get removed so the script shouldnt consider them as they are prob removed before threshold is reached<br><br>this is a usefull code in the case of massive abuse or floods and the channel is set to +m or +M so the regular active chatters can resume chatting<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 23, 2022 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Spartan]]></name></author>
		<updated>2022-05-11T04:52:48-04:00</updated>

		<published>2022-05-11T04:52:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111101#p111101</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111101#p111101"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111101#p111101"><![CDATA[
Is better the bot to give voice to the user who have 15 min and up who talk in channel not from 5 line, and if user doesnt talk 30 min in channel to devoice<br>also to check if the users is blacklist to not get voice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12970">Spartan</a> — Wed May 11, 2022 4:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mvp1]]></name></author>
		<updated>2022-05-09T00:19:55-04:00</updated>

		<published>2022-05-09T00:19:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111099#p111099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111099#p111099"/>
		<title type="html"><![CDATA[Re: +v on &quot;x&quot; lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111099#p111099"><![CDATA[
Cheers Spike mate, will test this and let you know. Quick question; Any chance this would work for more than one exceptions nick? e.g specificnick1 , specificnick2 and so on.. if I only change below as? <br><br>set exemptmasks {specificnick1!*@* specificnick2!*@* specificnick3!*@*}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12960">mvp1</a> — Mon May 09, 2022 12:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-05-08T23:19:16-04:00</updated>

		<published>2022-05-08T23:19:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111098#p111098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111098#p111098"/>
		<title type="html"><![CDATA[+v on &quot;x&quot; lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111098#p111098"><![CDATA[
See if this helps any...<div class="codebox"><p>Code: </p><pre><code>set lines 10# Exempt hostmask(s) to not voice# example:  set exemptmasks {myNick!*@* *!*@*.sumhost.com}#   Note: set empty to disable any masks checkingset exemptmasks {specificnick1!*@*}array set users {}bind pubm - * voice:linesproc voice:lines {nick host hand chan arguments} {  global users lines exemptmasks  foreach xmask [split [string trim $exemptmasks]] {    ;# check if Exempt Hostmask #    if {[matchaddr $xmask ${nick}!$host]} {  return 0  }  }  if {![info exists users($host)] &amp;&amp; ![isvoice $nick $chan] &amp;&amp; ![isop $nick $chan]} {    set users($host) 1  } elseif {[info exists users($host)] &amp;&amp; [expr $users($host) + 1] &gt;= $lines} {    pushmode $chan +v $nick; unset users($host)  } elseif {[info exists users($host)]} {    incr users($host)  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun May 08, 2022 11:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mvp1]]></name></author>
		<updated>2022-05-08T19:55:23-04:00</updated>

		<published>2022-05-08T19:55:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111097#p111097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111097#p111097"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111097#p111097"><![CDATA[
<blockquote class="uncited"><div>Try this:<div class="codebox"><p>Code: </p><pre><code>set lines 10array set users {}bind pubm - * voice:linesproc voice:lines {nick host hand chan arguments} {  global users lines  if {![info exists users($host)] &amp;&amp; ![isvoice $nick $chan] &amp;&amp; ![isop $nick $chan]} {    set users($host) 1  } elseif {[info exists users($host)] &amp;&amp; [expr $users($host) + 1] &gt;= $lines} {    pushmode $chan +v $nick; unset users($host)  } elseif {[info exists users($host)]} {    incr users($host)  }}</code></pre></div></div></blockquote>Hi guys, thanks for this. I am using below code and it's working fine. Is there a way I could add a specific nick in this code which is an exception and not to be voiced after 5 lines? For example "specificnick1" ?<br><blockquote class="uncited"><div>set lines 5<br>array set users {}<br><br>bind pubm - * voice:lines<br><br>proc voice:lines {nick host hand chan arguments} {<br>  global users lines<br>if {![info exists users($host)] &amp;&amp; ![isvoice $nick $chan] &amp;&amp; ![isop $nick $chan]} {<br>    set users($host) 1<br>  } elseif {[info exists users($host)] &amp;&amp; [expr $users($host) + 1] &gt;= $lines} {<br>    pushmode $chan +v $nick; unset users($host)<br>  } elseif {[info exists users($host)]} {<br>    incr users($host)<br>  }<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12960">mvp1</a> — Sun May 08, 2022 7:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aditya]]></name></author>
		<updated>2006-07-25T04:45:40-04:00</updated>

		<published>2006-07-25T04:45:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64839#p64839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64839#p64839"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64839#p64839"><![CDATA[
<blockquote class="uncited"><div>what if we want the bot to devoice the nick after some idle time .. lets say 2 minutes .. idle after being voiced after writing 10 lines .. <br>and after the devoice the line count should again go to 0.. <br>thanx</div></blockquote>Try This:<br><br><a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=354" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... oad&amp;id=354</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7738">Aditya</a> — Tue Jul 25, 2006 4:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aditya]]></name></author>
		<updated>2006-07-25T04:38:06-04:00</updated>

		<published>2006-07-25T04:38:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64838#p64838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64838#p64838"/>
		<title type="html"><![CDATA[Worth it!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64838#p64838"><![CDATA[
With a Script like "Voice On Lines" a Person Culd gain voice with just typing<br><br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Its better to always have something like 'voice on characters'<br><br>I made one for myself long before.. try it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>set voice(len) 120 bind pubm - * voice:lines proc voice:lines {nick host hand chan arguments} {    global voice    if {[string length $arguments] &gt; $voice(len)} {       if {![isvoice $nick $chan] || ![isop $nick $chan]} {          pushmode $chan +v $nick       }    } } </code></pre></div><strong class="text-strong">Note:</strong> <div class="codebox"><p>Code: </p><pre><code>set voice(len) 120</code></pre></div> can be set according to the channel's needs..[/b]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7738">Aditya</a> — Tue Jul 25, 2006 4:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-07-21T13:12:59-04:00</updated>

		<published>2006-07-21T13:12:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64773#p64773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64773#p64773"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64773#p64773"><![CDATA[
I for one would go for a md5 hash with the nick!ident@host, and splt, part, quit, etc. binds to remove them from the list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jul 21, 2006 1:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pakistani1]]></name></author>
		<updated>2006-07-19T16:23:44-04:00</updated>

		<published>2006-07-19T16:23:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64720#p64720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64720#p64720"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64720#p64720"><![CDATA[
what if we want the bot to devoice the nick after some idle time .. lets say 2 minutes .. idle after being voiced after writing 10 lines .. <br>and after the devoice the line count should again go to 0.. <br>thanx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6119">pakistani1</a> — Wed Jul 19, 2006 4:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eggi]]></name></author>
		<updated>2006-02-04T15:04:12-04:00</updated>

		<published>2006-02-04T15:04:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60116#p60116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60116#p60116"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60116#p60116"><![CDATA[
if the bot s oper bot &amp; not in a op mode  then what  line i have to replace ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6733">eggi</a> — Sat Feb 04, 2006 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[silx]]></name></author>
		<updated>2006-02-04T13:56:34-04:00</updated>

		<published>2006-02-04T13:56:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60112#p60112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60112#p60112"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60112#p60112"><![CDATA[
that worked <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>thanks alot<br><br>anyway to add a public channel command to for users to type to get voice? like. !bot-voiceme<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7331">silx</a> — Sat Feb 04, 2006 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-02-04T10:37:56-04:00</updated>

		<published>2006-02-04T10:37:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60108#p60108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60108#p60108"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60108#p60108"><![CDATA[
Try this:<div class="codebox"><p>Code: </p><pre><code>set lines 10array set users {}bind pubm - * voice:linesproc voice:lines {nick host hand chan arguments} {  global users lines  if {![info exists users($host)] &amp;&amp; ![isvoice $nick $chan] &amp;&amp; ![isop $nick $chan]} {    set users($host) 1  } elseif {[info exists users($host)] &amp;&amp; [expr $users($host) + 1] &gt;= $lines} {    pushmode $chan +v $nick; unset users($host)  } elseif {[info exists users($host)]} {    incr users($host)  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Feb 04, 2006 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[silx]]></name></author>
		<updated>2006-02-04T04:58:42-04:00</updated>

		<published>2006-02-04T04:58:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60097#p60097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60097#p60097"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60097#p60097"><![CDATA[
Tcl error [voice:lines]: can't read "users(-----@-------.net)": no such element in array<br><br><br>---- was replaced<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7331">silx</a> — Sat Feb 04, 2006 4:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-02-04T02:53:40-04:00</updated>

		<published>2006-02-04T02:53:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60094#p60094</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60094#p60094"/>
		<title type="html"><![CDATA[voice after so many public chat lines]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60094#p60094"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set lines 10array set users {}bind pubm - * voice:linesproc voice:lines {nick host hand chan arguments} {  global users lines  if {![info exists users($host)] &amp;&amp; ![isvoice $nick $chan] &amp;&amp; ![isop $nick $chan]} {    set users($host) 1  } elseif {[expr $users($host) + 1] &gt;= $lines} {    pushmode $chan +v $nick; unset users($host)  } else {    incr users($host)  }}</code></pre></div>This should work like you wanted it too<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Feb 04, 2006 2:53 am</p><hr />
]]></content>
	</entry>
	</feed>
