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

	<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>2008-04-27T12:04:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Salim]]></name></author>
		<updated>2008-04-27T12:03:28-04:00</updated>

		<published>2008-04-27T12:03:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82570#p82570</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82570#p82570"/>
		<title type="html"><![CDATA[[SOLVED] Trying to set user variables and download a file.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82570#p82570"><![CDATA[
Changed the line and the flag to '-' and it works now.<br><br>Thanks :&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9889">Salim</a> — Sun Apr 27, 2008 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2008-04-27T11:52:08-04:00</updated>

		<published>2008-04-27T11:52:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82568#p82568</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82568#p82568"/>
		<title type="html"><![CDATA[[SOLVED] Trying to set user variables and download a file.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82568#p82568"><![CDATA[
having a bind flag of "0" means the person already has to have that flag in the bot's userlist, binds do not automatically give flags<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sun Apr 27, 2008 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-04-27T11:07:54-04:00</updated>

		<published>2008-04-27T11:07:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82567#p82567</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82567#p82567"/>
		<title type="html"><![CDATA[[SOLVED] Trying to set user variables and download a file.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82567#p82567"><![CDATA[
Would "someone" happen to contain characters such as {[]}" within it?<br>First off, you can't use list commands on strings:<div class="codebox"><p>Code: </p><pre><code>set user [lindex $text 0]</code></pre></div> really should be <div class="codebox"><p>Code: </p><pre><code>set user [lindex [split $text] 0]</code></pre></div>Secondly, I assume you've checked user privileges - that the user issuing the command is properly identified as a user with the +0 flag...<br><br>Third, do you get any error messages on your console or such?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Apr 27, 2008 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Salim]]></name></author>
		<updated>2008-04-27T12:04:04-04:00</updated>

		<published>2008-04-27T05:46:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82561#p82561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82561#p82561"/>
		<title type="html"><![CDATA[[SOLVED] Trying to set user variables and download a file.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82561#p82561"><![CDATA[
Hey, im trying to make a script which downloads a file depending what the user writes eg. '!stats someone' would get a certain file eg <a href="http://server.tld/stats.php?stats=someone" class="postlink">http://server.tld/stats.php?stats=someone</a>. Heres what I got until now and I dont have a clue why it isnt working.<br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub 0 !stats getfileproc getfile {nick host hand chan text} {   set user [lindex $text 0]   set x [::http::geturl http://server.tld/stats.php?export=$user]   foreach pasta [split [::http::data $x] \n] {puthelp "privmsg $c :$pasta"}   ::http::cleanup $x}</code></pre></div>Sincerely,<br>Salim<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9889">Salim</a> — Sun Apr 27, 2008 5:46 am</p><hr />
]]></content>
	</entry>
	</feed>
