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

	<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>2002-11-04T12:02:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T12:02:04-04:00</updated>

		<published>2002-11-04T12:02:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12807#p12807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12807#p12807"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12807#p12807"><![CDATA[
god damit.. And I that just have rewritten the hole code ! arghs...<br><br>Well.. "You learn by your misstakes".... any how.. screw him :P<br><br>I tried to find the "colorcode" for reverse but I cant find it.. anyone?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T11:59:34-04:00</updated>

		<published>2002-11-04T11:59:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12806#p12806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12806#p12806"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12806#p12806"><![CDATA[
You need to keep reading over the script a few hundred times, to spot small mistakes like this one.<br><div class="codebox"><p>Code: </p><pre><code>if {[string tolower {lindex $text 2]] == ""} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T11:09:28-04:00</updated>

		<published>2002-11-04T11:09:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12802#p12802</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12802#p12802"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12802#p12802"><![CDATA[
I changed it.. And got a diffrent error.. so I rewrote alot of the code and it turned out to this:<div class="codebox"><p>Code: </p><pre><code>bind dcc z ftp dcc:ftpproc dcc:ftp {handle idx text} {   putlog "stage 0 - done"   if {[string tolower [lindex $text 1]] == ""} {      putlog "stage 2 - done"      puthelp "putdcc $idx Usage of ftp =&gt; ftp &lt;ip/user/pass/port&gt; &lt;value&gt;"   } elseif {[string tolower [lindex $text 1]] == "ip"} {      if {[string tolower {lindex $text 2]] == ""} {         puthelp "putdcc $idx Usage of .ftp =&gt; .ftp ip &lt;the.new.ip&gt;"      } else {          putlog "stage 5 - done"          ini_write ftpnfo.ini $hand ip [string tolower [lindex $text 3]]      }   } elseif {[string tolower [lindex $text 1]] == "user"} {      if {[string tolower {lindex $text 2]] == ""} {         puthelp "putdcc $idx Usage of .ftp =&gt; .ftp user &lt;the.new.username&gt;"      } else {         putlog "stage 6 - done"         ini_write ftpnfo.ini $hand user [string tolower [lindex $text 3]]      }   } elseif {[string tolower [lindex $text 1]] == "pass"} {      if {[string tolower [lindex $text 2]] == ""} {         puthelp "putdcc $idx Usage of .ftp =&gt; .ftp pass &lt;the.new.password&gt;"      } else {         putlog "stage 7 - done"         ini_write ftpnfo.ini $hand pass [string tolower [lindex $text 3]]      }   } elseif {[string tolower [lindex $text 1]] == "port"} {      if {[string tolower [lindex $text 2]] == ""} {         puthelp "putdcc $idx Usage of .ftp =&gt; .ftp port &lt;the.new.portnumber&gt;"      } else {         putlog "stage 8 - done"         ini_write ftpnfo.ini $hand port [string tolower [lindex $text 3]]      }   }}</code></pre></div>But I still got an error :( .. And I dont know how to fix it..<br><br><br>Error msg:<blockquote class="uncited"><div>[16:04] missing close-brace<br>    while executing<br>"proc dcc:ftp {handle idx text}"<br>    (file "scripts/save.tcl" line 3)<br>    invoked from within<br>"source scripts/save.tcl<br>"</div></blockquote>Thanx for help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T10:25:06-04:00</updated>

		<published>2002-11-04T10:25:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12800#p12800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12800#p12800"/>
		<title type="html"><![CDATA[Re: new =&gt; the real script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12800#p12800"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc z ftp dcc:ftpproc dcc:ftp {handle idx text} {   putlog "stage 0 - done"   if {[string tolower [lindex $text 1]] == "update"} {      putlog "stage 1 - done"      if {[string tolower [lindex $text 2]] == ""}      putlog "stage 2 - done"      puthelp "putdcc $idx Usage of update =&gt; .ftp update &lt;ip/user/pass/port&gt;"   } elseif {[string tolower [lindex $text 2]] == ""} {      putlog "stage 3 - done"      if {[string tolower [lindex $text 3]] == ""} {         putlog "stage 4 - done"         puthelp "putdcc $idx Usage of update ip =&gt; .ftp update ip &lt;the.new.ip&gt;"      } elseif {[string tolower [lindex $text 3]] == "ip"} {         putlog "stage 5 - done"         ini_write ftpnfo.ini $hand ip [string tolower [lindex $text 3]]      } elseif {[string tolower [lindex $text 2]] == "user"} {         putlog "stage 6 - done"         ini_write ftpnfo.ini $hand user [string tolower [lindex $text 3]]      } elseif {[string tolower [lindex $text 2]] == "pass"} {         putlog "stage 7 - done"         ini_write ftpnfo.ini $hand pass [string tolower [lindex $text 3]]      } elseif {[string tolower [lindex $text 2]] == "port"} {         putlog "stage 8 - done"         ini_write ftpnfo.ini $hand port [string tolower [lindex $text 3]]      }      putlog "stage 9 - done"   }   putlog "stage 10 - done"}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {[string tolower [lindex $text 2]] == ""}</code></pre></div>This is the incorrect line that cuases the error<br><br>However, the logic in use is genraly flawed, unless it is due to the error above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T09:44:37-04:00</updated>

		<published>2002-11-04T09:44:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12799#p12799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12799#p12799"/>
		<title type="html"><![CDATA[new =&gt; the real script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12799#p12799"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc z ftp dcc:ftpproc dcc:ftp {handle idx text} {   putlog "stage 0 - done"   if {[string tolower [lindex $text 1]] == "update"} {      putlog "stage 1 - done"      if {[string tolower [lindex $text 2]] == ""}      putlog "stage 2 - done"      puthelp "putdcc $idx Usage of update =&gt; .ftp update &lt;ip/user/pass/port&gt;"   } elseif {[string tolower [lindex $text 2]] == ""} {      putlog "stage 3 - done"      if {[string tolower [lindex $text 3]] == ""} {         putlog "stage 4 - done"         puthelp "putdcc $idx Usage of update ip =&gt; .ftp update ip &lt;the.new.ip&gt;"      } elseif {[string tolower [lindex $text 3]] == "ip"} {         putlog "stage 5 - done"         ini_write ftpnfo.ini $hand ip [string tolower [lindex $text 3]]      } elseif {[string tolower [lindex $text 2]] == "user"} {         putlog "stage 6 - done"         ini_write ftpnfo.ini $hand user [string tolower [lindex $text 3]]      } elseif {[string tolower [lindex $text 2]] == "pass"} {         putlog "stage 7 - done"         ini_write ftpnfo.ini $hand pass [string tolower [lindex $text 3]]      } elseif {[string tolower [lindex $text 2]] == "port"} {         putlog "stage 8 - done"         ini_write ftpnfo.ini $hand port [string tolower [lindex $text 3]]      }      putlog "stage 9 - done"   }   putlog "stage 10 - done"}</code></pre></div>As you see I am trying to se how faar the codes goes though using alot of putlog.. But it doesnt even come to putlog stage 0....<br><br>If I type .ftp in the telnet/dcc chat I get<blockquote class="uncited"><div>[14:38] Tcl error [dcc:ftp]: wrong # args: no script following "{[string tolower [li" argument</div></blockquote>So I really cant find out whats wrong...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 9:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T09:11:48-04:00</updated>

		<published>2002-11-04T09:11:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12798#p12798</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12798#p12798"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12798#p12798"><![CDATA[
In an earlier post today, I went in depth (depth, not english <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> ) into this area.<br><br>Eggdrop will pass arguments to a procedure, which you need to catch. This is done witht he first line of the proc command.<br><br>The problem with the above script, is that it expects eggdrop to understand exactly how it is programmed, and send what you want.<br><br>This is not how it works. tcl-commands.doc tells you what eggdrop will send, and you are expected to capture what it sends.<br><br>You may only need 2 of the 3 arguments sent, regardless of this, it will send all 3.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T09:11:03-04:00</updated>

		<published>2002-11-04T09:11:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12797#p12797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12797#p12797"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12797#p12797"><![CDATA[
for some reason I needed idx there too...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T09:03:30-04:00</updated>

		<published>2002-11-04T09:03:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12796#p12796</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12796#p12796"/>
		<title type="html"><![CDATA[kind of new stuff]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12796#p12796"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc z nfo dcc:nfoproc dcc:nfo {hand text} {   putlog "stage - done"}</code></pre></div>I get <blockquote class="uncited"><div>Tcl error [dcc:nfo]: called "dcc:nfo" with too many arguments</div></blockquote>But I need handle and text... Why do I get this error?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T08:39:03-04:00</updated>

		<published>2002-11-04T08:39:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12795#p12795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12795#p12795"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12795#p12795"><![CDATA[
oh.. sorry.. I didnt post my new version.. changed alot :P<br><br>But i think i found the problem.. Thanx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 8:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T08:36:43-04:00</updated>

		<published>2002-11-04T08:36:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12794#p12794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12794#p12794"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12794#p12794"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - ti.test* ini_las proc ini_las {nick uhost hand chan arg} {    set prtt [ini_read nfo.ini $hand foba]    puthelp "privmsg $chan :nfo is $prtt" }</code></pre></div>That is what you posted.<br><br>There is no z flag involved, and thyis can be triggered by anyone by typeing "ti.text" on a channel.<br><br>When $hand == * is true, it means that eggdrop doesn't recognise you, even if it should.<br><br>This is because, none of the hostmasks in your ".whois" matches you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T08:34:21-04:00</updated>

		<published>2002-11-04T08:34:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12793#p12793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12793#p12793"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12793#p12793"><![CDATA[
hmm.. wait.. I got an idea.. yeah I know it isnt that common <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>ini_read doesnt have $hand .. could it be that? Do I have to add a global in the ini_read proc or isnt this the thing?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 8:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T08:32:41-04:00</updated>

		<published>2002-11-04T08:32:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12792#p12792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12792#p12792"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12792#p12792"><![CDATA[
I found the problem.. It is that $hand == "*" instead of my handle...<br><br>Why is it like this.. it should know who I am couse I am the onlyone with z flag and I have that as a statement in my bind<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T08:30:18-04:00</updated>

		<published>2002-11-04T08:30:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12791#p12791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12791#p12791"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12791#p12791"><![CDATA[
Is the INI file formatted correctly, and are you using the correct values.<br><br>To get value from a INI file, you have to know its topic and name.<br><br>You can't simply use<blockquote class="uncited"><div>item1=value1<br>item2=value2</div></blockquote>INI files are formatted like<blockquote class="uncited"><div>[topic1]<br>item1=value1<br>item2=value2<br>[topic2]<br>item1=value1<br>item2=value2</div></blockquote>You are passing the value of the $hand variable as the topic (I presume, i have not looked at the ini parser yet). Are you sure this is what you should be passing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 8:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T08:17:54-04:00</updated>

		<published>2002-11-04T08:17:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12790#p12790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12790#p12790"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12790#p12790"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - ti.test* ini_lasproc ini_las {nick uhost hand chan arg} {   set prtt [ini_read nfo.ini $hand foba]   puthelp "privmsg $chan :nfo is $prtt"}</code></pre></div><br>Thats the whole code.. But I just get "[ +ti^ ] nfo is ;"<br>And the value of foba is 2555 in the inifile..<br>No error msgs, no nothing... :|<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T08:08:52-04:00</updated>

		<published>2002-11-04T08:08:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12788#p12788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12788#p12788"/>
		<title type="html"><![CDATA[vars and inis]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12788#p12788"><![CDATA[
The first quote is the most correct one, though yu should not use white space at the begining of the command (I have never tested this ti see it it's faulse, but it's the most common and standard method)<br><div class="codebox"><p>Code: </p><pre><code>set prtt [ini_read nfo.ini $hand foba]</code></pre></div>Beyond this, what errors do you get.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 8:08 am</p><hr />
]]></content>
	</entry>
	</feed>
