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

	<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>2010-01-03T07:04:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2010-01-03T07:04:21-04:00</updated>

		<published>2010-01-03T07:04:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91535#p91535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91535#p91535"/>
		<title type="html"><![CDATA[on voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91535#p91535"><![CDATA[
This is much better my code. It will be be a good lesson for me too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Sun Jan 03, 2010 7:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-03T06:30:54-04:00</updated>

		<published>2010-01-03T06:30:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91532#p91532</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91532#p91532"/>
		<title type="html"><![CDATA[on voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91532#p91532"><![CDATA[
If you'd only want to catch +v modes, you could also use a more restrictive mask in your binding:<div class="codebox"><p>Code: </p><pre><code>bind mode - "% +v" yourprocproc yourproc {nick host handle channel mode {target ""}} {  set tmp [split $mode]  if {$target == ""} {    set target [lindex $tmp 1]  }  pushmode $chan -v $target}</code></pre></div>The above code also includes a compability-fix to make it work with older (1.3.17 and older) eggdrops.<br><br>If you'd further want to limit the script to a single channel, further retrict your mask:<div class="codebox"><p>Code: </p><pre><code>bind mode - "#mychan +v" yourproc</code></pre></div>This also saves you the issue of the case-sensitive matching done with username's code. You could get around this by using the string compare or string equal commands with the -nocase option though..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jan 03, 2010 6:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2010-01-02T17:56:35-04:00</updated>

		<published>2010-01-02T17:56:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91529#p91529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91529#p91529"/>
		<title type="html"><![CDATA[on voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91529#p91529"><![CDATA[
Try it:<div class="codebox"><p>Code: </p><pre><code>bind mode - * onvoiceproc onvoice {nick uhost hand chan mode victim} {    if {$mode == "+v" &amp;&amp; $chan == "#CWCountdown"} {        putserv "MODE $chan :-v $victim"    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Sat Jan 02, 2010 5:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-01-02T15:42:00-04:00</updated>

		<published>2010-01-02T15:42:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91528#p91528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91528#p91528"/>
		<title type="html"><![CDATA[on voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91528#p91528"><![CDATA[
Help changing to tcl<br><div class="codebox"><p>Code: </p><pre><code>on %*:VOICE:#CWCountdown: { mode # -v $vnick }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Jan 02, 2010 3:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
