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

	<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-12-10T19:02:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-12-10T19:02:48-04:00</updated>

		<published>2003-12-10T19:02:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31285#p31285</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31285#p31285"/>
		<title type="html"><![CDATA[Problem with validuser in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31285#p31285"><![CDATA[
i consider learning cooking instead of tcl... thanks again  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Dec 10, 2003 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-10T18:52:13-04:00</updated>

		<published>2003-12-10T18:52:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31284#p31284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31284#p31284"/>
		<title type="html"><![CDATA[Problem with validuser in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31284#p31284"><![CDATA[
<blockquote class="uncited"><div>[17:38] wrong # args: should be "proc name args</div></blockquote>Did you consider removing that closing brace from my example? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Dec 10, 2003 6:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-12-10T18:40:49-04:00</updated>

		<published>2003-12-10T18:40:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31283#p31283</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31283#p31283"/>
		<title type="html"><![CDATA[Problem with validuser in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31283#p31283"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[17:38] Tcl error in file 'config.txt':[17:38] wrong # args: should be "proc name args    while executing"proc dcc:+avertir {hand idx arg} {        set fautif [lindex $arg 0]        global schan        set ok 0        foreach chanlist [array names schan] {                if {[onchan $fautif $..."    (file "scripts/avertir2.tcl" line 55)</code></pre></div>this is what it returns if i replace my line with yours<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Dec 10, 2003 6:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-10T18:15:14-04:00</updated>

		<published>2003-12-10T18:15:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31282#p31282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31282#p31282"/>
		<title type="html"><![CDATA[Problem with validuser in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31282#p31282"><![CDATA[
tcl-commands.doc:<blockquote class="uncited"><div>  finduser &lt;nick!user@host&gt;<br>    Description: finds the user record which most closely matches the given<br>      <em class="text-italics">nick!user@host</em></div></blockquote><div class="codebox"><p>Code: </p><pre><code>if {![validuser $fautif] &amp;&amp; ![validuser [finduser $fautif![getchanhost $fautif]]]} {...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Dec 10, 2003 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-12-10T17:51:01-04:00</updated>

		<published>2003-12-10T17:51:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31280#p31280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31280#p31280"/>
		<title type="html"><![CDATA[Problem with validuser in proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31280#p31280"><![CDATA[
HI again,<br><br>i have a small proc wich add users to a list but if this user is known to the bot he is not added i think i find where the problem is but i dont know how to chanit to include anyuser known or not <br><br>heres the proc<div class="codebox"><p>Code: </p><pre><code># CODE# ----proc dcc:+avertir {hand idx arg} {set fautif [lindex $arg 0]global schanset ok 0foreach chanlist [array names schan] {if {[onchan $fautif $schan($chanlist)]} {set ok 1}}if {!$ok} {putdcc $idx "$fautif n'est pas sur le canal"return 0}if {[lindex $arg 1] == ""} {putdcc $idx "Vous n'avez pas spécifiez de motif"return 0}if {![validuser $fautif] &amp;&amp; [finduser [maskhost [getchanhost $fautif] ] ] == "*"} {adduser $fautif [maskhost [getchanhost $fautif] ]chattr $fautif +Ssetuser $fautif COMMENT  [lrange $arg 1 end]putdcc $idx "Avertissement enregistrer"return 1} {putdcc $idx "Je ne peux mettre cet usager a avertir"return 0}}</code></pre></div>the line where i think the problem sits is <div class="codebox"><p>Code: </p><pre><code>if {![validuser $fautif] &amp;&amp; [finduser [maskhost [getchanhost $fautif] ] ] == "*"} {</code></pre></div>thanks <br><br>Pitchat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Dec 10, 2003 5:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
