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

	<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-03-08T15:10:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-03-08T15:10:23-04:00</updated>

		<published>2010-03-08T15:10:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92436#p92436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92436#p92436"/>
		<title type="html"><![CDATA[Bind dcc - voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92436#p92436"><![CDATA[
nml375: 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=8130">TCL_no_TK</a> — Mon Mar 08, 2010 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-03-07T17:47:51-04:00</updated>

		<published>2010-03-07T17:47:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92428#p92428</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92428#p92428"/>
		<title type="html"><![CDATA[Bind dcc - voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92428#p92428"><![CDATA[
Thanks dude it's fine<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Sun Mar 07, 2010 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-03-07T14:25:00-04:00</updated>

		<published>2010-03-07T14:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92421#p92421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92421#p92421"/>
		<title type="html"><![CDATA[Bind dcc - voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92421#p92421"><![CDATA[
Tcl_no_tk:<br>Just a few remarks;<br>vnicks is a string, not a list. Thus not suitable for use with foreach.<br>[join [lrange [split $text] end end]] is the same as [lindex [split $text] end], same goes for end-1.<br>If the last word is not a valid channel, wouldn't this be a nickname to voice then? (add it to the list of nicks to voice)<br>The console command returns a list, not a string. Don't use split here.<br><br>I'd write the script somewhat like this:<div class="codebox"><p>Code: </p><pre><code>proc dcc:pv {handle idx text} { set list [split $text] if {[validchan [lindex $list end]]} {  set channel [lindex $list end]  set list [lrange $list 0 end-1] } elseif {[validchan [lindex [console $idx] 0]]} {  set channel [lindex [console $idx] 0] } else {  putidx $idx {Usage: +v &lt;nickname&gt; [nickname] ... [channel]}  return 1 } if {![botonchan $channel] || ![botisop $channel]} {  putidx $idx "I am currently not a channel operator on $channel" } foreach vnick [lsort -unique $list] {  pushmode $channel +v $vnick }}bind dcc o|o +v dcc:pv</code></pre></div>This could be more optimized, but I've kept it like this to make it easier to follow the flow of the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Mar 07, 2010 2:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-03-07T09:00:48-04:00</updated>

		<published>2010-03-07T09:00:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92416#p92416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92416#p92416"/>
		<title type="html"><![CDATA[Bind dcc - voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92416#p92416"><![CDATA[
when I forget to put the #channel on the line I get it<br>(me): .+v angel Fury<br>((bot): [12:57] Tcl error [dcc:+v]: illegal channel: cryp<br>it should print some other exception I suppose, Ex: please put the channel name instead of "Tcl error [dcc:+v]: illegal channel: Fury" and <br>I noticed that the bot does not voice the entire list just one nick<br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Sun Mar 07, 2010 9:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-03-07T08:48:47-04:00</updated>

		<published>2010-03-07T08:48:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92415#p92415</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92415#p92415"/>
		<title type="html"><![CDATA[Bind dcc - voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92415#p92415"><![CDATA[
Thanks man i made this code but it does not work as it should, thank you filed this procedure I'll test it.<br><div class="codebox"><p>Code: </p><pre><code>bind dcc n +v mass:voiceproc mass:voice {hand idx arg} {     set nick1 [lindex $arg 0]     set nick2 [lindex $arg 2]     set nick3 [lindex $arg 3]     set nick4 [lindex $arg 4]     set nick5 [lindex $arg 5]     set nick6 [lindex $arg 6]     set nick7 [lindex $arg 7]     set chan "#chan"     foreach nick [list $nick1 $nick2 $nick3 $nick4 $nick5 $nick6 $nick7] { pushmode $chan +v $nick }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Sun Mar 07, 2010 8:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-03-07T07:17:03-04:00</updated>

		<published>2010-03-07T07:17:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92413#p92413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92413#p92413"/>
		<title type="html"><![CDATA[Bind dcc - voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92413#p92413"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> proc dcc:+v {hand idx text} {  set chan [join [lrange [split $text] end end]]  set vnicks [join [lrange [split $text] end-1 end-1]]  if {$vnicks == ""} {   putidx $idx "Usage: +v &lt;nicknames ...&gt; \[#channel\]"   return 1  }   if {([regexp {^#} $chan])&amp;&amp;(![validchan "$chan"])} {    if {(![validchan [lindex [split [console $idx]] 0]])} {    putidx $idx "Usage: +v &lt;nicknames ...&gt; \[#channel\]"    return 1    } else {     set chan [lindex [split [console $idx]] 0]    }   }    if {![botisop $chan]} {     putidx $idx "Sorry, I'm not a channel operator on $chan"     return 1    }     foreach nicks $vnicks {      pushmode $chan +v $nicks     }      return 1 } bind dcc o|- +v dcc:+v</code></pre></div> * Not Tested, any problems please post reply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Mar 07, 2010 7:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-03-05T07:18:43-04:00</updated>

		<published>2010-03-05T07:18:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92383#p92383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92383#p92383"/>
		<title type="html"><![CDATA[Bind dcc - voice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92383#p92383"><![CDATA[
Everything is in the title please i want a script that voice in mass in dcc<br><br>ex: .+v nick1 nick2 nick3 nick4 nick5 nick6 #channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Fri Mar 05, 2010 7:18 am</p><hr />
]]></content>
	</entry>
	</feed>
