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

	<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>2004-07-17T11:14:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jones]]></name></author>
		<updated>2004-07-17T11:14:10-04:00</updated>

		<published>2004-07-17T11:14:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38715#p38715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38715#p38715"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38715#p38715"><![CDATA[
If i run this tcl in eggdrop1.1.5 i think i don´t have this problem!<br>I will test<br><blockquote class="uncited"><div>It looks to me that jones is trying to save one of the following fields to a user;<br> 'nome nick origem entrada fotourl email', and with the exeption of email, none of those are considered valid entry types. So, XTRA field it is..<br><br>That said, he is probable better off writing this from scratch, instead of trying to modify this hopelessly old and outdated script.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5118">jones</a> — Sat Jul 17, 2004 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-07-16T12:45:27-04:00</updated>

		<published>2004-07-16T12:45:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38694#p38694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38694#p38694"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38694#p38694"><![CDATA[
It looks to me that jones is trying to save one of the following fields to a user;<br> 'nome nick origem entrada fotourl email', and with the exeption of email, none of those are considered valid entry types. So, XTRA field it is..<br><br>That said, he is probable better off writing this from scratch, instead of trying to modify this hopelessly old and outdated script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Jul 16, 2004 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-07-16T10:12:51-04:00</updated>

		<published>2004-07-16T10:12:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38693#p38693</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38693#p38693"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38693#p38693"><![CDATA[
there is one argument to much in that one...<br>actually in all of the ones listed in this thread <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br>try this one:<div class="codebox"><p>Code: </p><pre><code>proc user-set {hand type arg} {   setuser $hand $type $arg }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri Jul 16, 2004 10:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jones]]></name></author>
		<updated>2004-07-16T08:51:03-04:00</updated>

		<published>2004-07-16T08:51:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38690#p38690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38690#p38690"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38690#p38690"><![CDATA[
but my user-set just alredy it:<br><br>proc user-set {n c t} {<br> setuser $n xtra $c $t<br>}<br><br><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc user-set {hand type arg} {  setuser $hand XTRA $type $arg}</code></pre></div></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5118">jones</a> — Fri Jul 16, 2004 8:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jones]]></name></author>
		<updated>2004-07-16T08:49:31-04:00</updated>

		<published>2004-07-16T08:49:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38689#p38689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38689#p38689"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38689#p38689"><![CDATA[
but my user-set alredy just it:<br><br>proc user-set {n c t} {<br> setuser $n xtra $c $t<br>}<br><blockquote class="uncited"><div>That setxtra proc wont work, replace your user-set code with the one I posted.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5118">jones</a> — Fri Jul 16, 2004 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-07-15T20:49:32-04:00</updated>

		<published>2004-07-15T20:49:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38683#p38683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38683#p38683"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38683#p38683"><![CDATA[
That setxtra proc wont work, replace your user-set code with the one I posted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Jul 15, 2004 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jones]]></name></author>
		<updated>2004-07-15T20:23:42-04:00</updated>

		<published>2004-07-15T20:23:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38682#p38682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38682#p38682"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38682#p38682"><![CDATA[
This code is ok! i don´t have more error in my tcl!<br><br>but the command that i use with this code not have effect!<br>I think to see the tcl in geral, but is a little complex because this tcl run with more some tcl and make html file.<br>*and i realy need show you the html file make online for tcl and the command on bot in the same time and show the problem!<br>for you understand me.<br>you can help-me go to the my server and see the eggdrop run? and i send the tcls for you?<br>give-me your UIN icq or MSN or email<br>to i go contact you to combine the time!  <br>my email is: <a href="mailto:jr@viasky.com.br">jr@viasky.com.br</a><br><br>I am despaired with this!!!<br>Thanks! <br><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc setxtra { handle data } {  set type [lindex $data 0]  set data [lrange $data 1 end]  setuser $handle XTRA $type $data } ;# setxtra</code></pre></div></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5118">jones</a> — Thu Jul 15, 2004 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-07-15T15:39:26-04:00</updated>

		<published>2004-07-15T15:39:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38676#p38676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38676#p38676"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38676#p38676"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc setxtra { handle data } {  set type [lindex $data 0]  set data [lrange $data 1 end]  setuser $handle XTRA $type $data } ;# setxtra</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Jul 15, 2004 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-07-15T15:28:30-04:00</updated>

		<published>2004-07-15T15:28:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38675#p38675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38675#p38675"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38675#p38675"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc user-set {hand type arg} {  setuser $hand XTRA $type $arg}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Jul 15, 2004 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jones]]></name></author>
		<updated>2004-07-15T14:08:00-04:00</updated>

		<published>2004-07-15T14:08:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38672#p38672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38672#p38672"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38672#p38672"><![CDATA[
sorry!<br>i´m error to copy here the code of setxtra!<br><br>The code with problem is:<br>This code stay in toolkit.tcl<br><br>proc user-set {handle key data} {<br>  set xtra [getxtra $handle]<br>  # is key already there?<br>  for {set i 0} {$i &lt; [llength $xtra]} {incr i} {<br>    set this [lindex $xtra $i]<br>    if {[string compare [lindex $this 0] $key] == 0} {<br>      set this [list $key $data]<br>      setxtra $handle [lreplace $xtra $i $i $this]<br>      return<br>    }<br>  }<br>  lappend xtra [list $key $data]<br>  setxtra $handle $xtra<br>}<br><br>Thanks<br><blockquote class="uncited"><div>I don't see <strong class="text-strong">setxtra</strong> in that code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><strong class="text-strong">user-set $user $type $arg</strong> looks like old compat command <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5118">jones</a> — Thu Jul 15, 2004 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-07-14T19:40:43-04:00</updated>

		<published>2004-07-14T19:40:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38640#p38640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38640#p38640"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38640#p38640"><![CDATA[
I don't see <strong class="text-strong">setxtra</strong> in that code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><strong class="text-strong">user-set $user $type $arg</strong> looks like old compat command <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Wed Jul 14, 2004 7:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jones]]></name></author>
		<updated>2004-07-14T18:19:57-04:00</updated>

		<published>2004-07-14T18:19:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38636#p38636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38636#p38636"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38636#p38636"><![CDATA[
yes proc dcc_chinfo:<br><br>proc dcc_chinfo {handle idx rest} {<br>  global modify imed time<br>  set rest [filtstr $rest]<br>  set tipos "nome nick origem entrada fotourl email"<br>  if {[llength $rest]&lt;=2} {<br>    putdcc $idx "2Erro de sintaxe. Formato:12 .chinfo &lt;handle&gt; &lt;type&gt; &lt;arg&gt;"<br>    putdcc $idx "2Os tipos disponíveis são: [c_virgula_e [virgula_e $tipos] 12 2]2."<br>    return<br>  }<br>  set user [lindex $rest 0]<br>  if {[isinvalid $user $idx]} {return}<br>  set type [string tolower [lindex $rest 1]]<br>  set arg  [newlrange $rest 2 end]<br>  set found 0<br>  foreach campo [string tolower $tipos] {<br>    if {$campo==$type} {set found 1; break}<br>  }<br>  if {$found==0} {<br>    putdcc $idx "2Campo inválido. Sao campos válidos: [c_virgula_e [virgula_e $tipos] 12 2]"<br>    return<br>  }<br>  if {$type=="origem"} {<br>    set arg [lindex [filtstr $arg] 0]<br>  }<br>  user-set $user $type $arg<br>  if {$imed(makememberspage)} {<br>    set construcao "Atualizando modificação na página ..."<br>  } else {<br>    set construcao "Página sendo atualizada em12 $time(makevotepages) 2minutos!"<br>  }<br>  putdcc $idx "2Informado setada. $construcao"<br>  putcmdlog "#$handle# chinfo $user $type ..."<br>  set modify(members) 1<br>  if {$imed(makememberspage)} {checar_paginas}<br>}<br><br>Thanks!<br><blockquote class="uncited"><div>Could you paste that scipt or give a link to it?</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5118">jones</a> — Wed Jul 14, 2004 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-07-14T17:44:54-04:00</updated>

		<published>2004-07-14T17:44:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38635#p38635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38635#p38635"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38635#p38635"><![CDATA[
Could you paste that scipt or give a link to it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Wed Jul 14, 2004 5:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jones]]></name></author>
		<updated>2004-07-14T17:39:03-04:00</updated>

		<published>2004-07-14T17:39:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38634#p38634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38634#p38634"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38634#p38634"><![CDATA[
I put this code:<br>i have this error now:<br><br>[18:39] Tcl error [dcc_chinfo]: wrong # args: should be "setxtra handle type data"<br><blockquote class="uncited"><div>This should work:<br><div class="codebox"><p>Code: </p><pre><code>proc setxtra { handle type data } {  setuser $handle XTRA $type $data} ;# setxtra</code></pre></div></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5118">jones</a> — Wed Jul 14, 2004 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-07-14T15:05:14-04:00</updated>

		<published>2004-07-14T15:05:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38631#p38631</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38631#p38631"/>
		<title type="html"><![CDATA[Help me with error in tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38631#p38631"><![CDATA[
Correct me if I'm wrong, but didnt good old 'setxtra' just wipe all the xtra info and then write the new one, like 'setxtra handle xtra'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Jul 14, 2004 3:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
