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

	<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-03-09T08:36:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-09T08:36:50-04:00</updated>

		<published>2003-03-09T08:36:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17591#p17591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17591#p17591"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17591#p17591"><![CDATA[
it works !!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> thank you caesar and everybody else for your help and your patience<br>see you  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <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 — Sun Mar 09, 2003 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-09T02:29:55-04:00</updated>

		<published>2003-03-09T02:29:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17584#p17584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17584#p17584"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17584#p17584"><![CDATA[
Actualy I've said earlyer that there is no need for the 'botnick' thing. Here is the *bug free* version that should work fine:<div class="codebox"><p>Code: </p><pre><code>bind pub o|o !v pub:v proc pub:v {nick host handle channel arg} {   if {[llength [split $arg]] == 0} {    putserv "NOTICE $nick :\002Usage:\002 !v &lt;nick1&gt; \[nick2\] \[nick3\] .. etc."   return 0 }  if {![botisop $channel]} {     putserv "NOTICE $nick :I'm not oped in $channel."   return 0 }   foreach user [split $arg] {    if {![onchan $user $channel] || [isop $user $channel] || [isvoice $user $channel]} { continue }     pushmode $channel +v $user   } }</code></pre></div>I'm a bit rusty.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Got to consult again the manual..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Mar 09, 2003 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-08T12:46:02-04:00</updated>

		<published>2003-03-08T12:46:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17566#p17566</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17566#p17566"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17566#p17566"><![CDATA[
i don't have a mistake message anymore but it still doesn't work  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by Guest — Sat Mar 08, 2003 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-03-08T11:17:02-04:00</updated>

		<published>2003-03-08T11:17:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17561#p17561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17561#p17561"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17561#p17561"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set botnick [string tolower $botnick] </code></pre></div>would overwrite the global var $botnick with it's lowercase version..<br><br>change it to <div class="codebox"><p>Code: </p><pre><code>set botnick2 [string tolower $botnick]</code></pre></div>and replace every following $botnick with $botnick2<br><br>i have no running eggie atm, but i think that will work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat Mar 08, 2003 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-08T10:17:23-04:00</updated>

		<published>2003-03-08T10:17:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17557#p17557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17557#p17557"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17557#p17557"><![CDATA[
sorry but it still doesn't work. i have this message in the party-line<div class="codebox"><p>Code: </p><pre><code>Tcl error [pub:v]: can't set "botnick": read-only variable</code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by Guest — Sat Mar 08, 2003 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-08T09:49:08-04:00</updated>

		<published>2003-03-08T09:49:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17555#p17555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17555#p17555"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17555#p17555"><![CDATA[
hehe of course you do <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>if {[llength $arg] &gt; 0} {</code></pre></div>should be<div class="codebox"><p>Code: </p><pre><code>if {[llength [split $arg]] == 0} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Mar 08, 2003 9:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-08T09:30:49-04:00</updated>

		<published>2003-03-08T09:30:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17554#p17554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17554#p17554"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17554#p17554"><![CDATA[
thanks for everything but for me doesn't work, i get a notice in which there is " Usage: !v nick1 nick2 nick3" but nothing happens on the chan.<br>i hope you will go on helping me , thank you again  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by Guest — Sat Mar 08, 2003 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-08T08:21:27-04:00</updated>

		<published>2003-03-08T08:21:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17552#p17552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17552#p17552"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17552#p17552"><![CDATA[
ceasar... read the FAQ.......<br><br>You should NOT do list commands on a string. $arg is a string.. llength is a list-command. This means you have to do [llength [split $arg]] to make it correct.. <br><br>this is basic tcl-coding and you should have understood this by now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>.. if not maybe you should take a second look at some of the tcl-tutorials online?<br><br>string tolwer is used ... ie when you want to make a match without upper/lowercase difference. <br>bLa == bla &lt;-- false<br>[string tolower bLa] == bla &lt;-- true<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Mar 08, 2003 8:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-08T07:44:34-04:00</updated>

		<published>2003-03-08T07:44:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17551#p17551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17551#p17551"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17551#p17551"><![CDATA[
My appologies.. I've finaly understood what you meant to say about the '$botnick == $user' check. He get checked at the [isop] thing. As for your 'simple' question, I haven't understood what you mean by that. I admit that I don't know even don't have a clue sometimes when I must put that 'tolower' thing.<br><br>About the 'flame', this was just a lil joke. I'm sorry if isn't funny.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Mar 08, 2003 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-03-08T06:58:48-04:00</updated>

		<published>2003-03-08T06:58:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17550#p17550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17550#p17550"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17550#p17550"><![CDATA[
<blockquote class="uncited"><div>flames]If you don't consider them then do yourself the code.[/flames] <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Such flames are very nice, but certainly out of place. And the smiley next to it makes it even more ambiguous. Also, it is a lousy practise to first post code (with errors) and then refuse to listen to comments on it.<br><br>With my initial posting I suspected this would (again) end up in a long and dreadfull iterating on your code, as it usually does. But I've of lost my appetite for doing that.<br><br>First, my question was plain and simple: <br><blockquote class="uncited"><div>The question for caesar is: when did you use the first list command? </div></blockquote>How difficult is that question? You refused to read and properly answer the question. <br>You are using [llength] on a string. Such error has been told you at least 10 times before on this forum. And it even is treated in the FAQ question.<br><br>Second: your check for $botnick == $user is silly. First you check if the bot is op and if the bot is op, you continue the proc. Then you check from the list of users if the user has ops. If it has ops, it is not voiced. At that point the bot will not be voiced, because it has ops. So, there is no need to check for the $botnick == $user. And subsequently there is no need for all the [string tolower], which you always seem to throw in because you fail to understand properly what is going on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat Mar 08, 2003 6:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-08T05:31:45-04:00</updated>

		<published>2003-03-08T05:31:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17548#p17548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17548#p17548"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17548#p17548"><![CDATA[
Also, if you are talking about the 'if {![onchan $user $channel] || [isop $user $channel] || [isvoice $user $channel] || $botnick == $user} { continue }' line it's correct. he wants a multivoice thing and this calls for this checks. Already oped, voiced or not in channel and the bot must be skiped.. I consider this correctly.. <br>flames]If you don't consider them then do yourself the code.[/flames] <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=187">caesar</a> — Sat Mar 08, 2003 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-08T05:20:04-04:00</updated>

		<published>2003-03-08T05:20:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17547#p17547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17547#p17547"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17547#p17547"><![CDATA[
I haven't understood what you meant to say. I've tested it and works fine as it is after the changes are made. If you are talking about to remove the "set arg [string tolower $arg]" is correct to remove it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Mar 08, 2003 5:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-03-08T03:23:50-04:00</updated>

		<published>2003-03-08T03:23:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17546#p17546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17546#p17546"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17546#p17546"><![CDATA[
<blockquote class="uncited"><div>from:<div class="codebox"><p>Code: </p><pre><code> foreach user $arg { </code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code> foreach user [split $arg] { </code></pre></div></div></blockquote>You did [string tolower $botnick] before comparing it to the $user, which is 1 problem solved.<br><blockquote class="uncited"><div>try splitting $arg before doing list commands on it...</div></blockquote>The question for caesar is: when did you use the first list command?<br><br>Once you have done the [split $arg] at the correct spot, you can move the [string tolower $arg] above that.<br><br>After that, you can clean up the code, and start wondering if all this [string tolower] business is really needed... is it really needed to compare the $user with the $botnick? Or is there already a test that [botisop] and a second test which will not voice a user that  if he/she already [isop]?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat Mar 08, 2003 3:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-08T02:38:48-04:00</updated>

		<published>2003-03-08T02:38:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17545#p17545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17545#p17545"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17545#p17545"><![CDATA[
from:<div class="codebox"><p>Code: </p><pre><code> foreach user $arg { </code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code> foreach user [split $arg] { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Mar 08, 2003 2:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-07T19:13:21-04:00</updated>

		<published>2003-03-07T19:13:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17543#p17543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17543#p17543"/>
		<title type="html"><![CDATA[script for multivoice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17543#p17543"><![CDATA[
try splitting $arg before doing list commands on it...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri Mar 07, 2003 7:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
