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

	<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>2006-11-01T18:22:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-01T18:22:53-04:00</updated>

		<published>2006-11-01T18:22:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67640#p67640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67640#p67640"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67640#p67640"><![CDATA[
The format of if is:<br><br>if {test} {do stuff}<br><br><br>So yeah, if {test}  would not work by itself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Nov 01, 2006 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MacDaddy]]></name></author>
		<updated>2006-11-01T17:40:41-04:00</updated>

		<published>2006-11-01T17:40:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67636#p67636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67636#p67636"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67636#p67636"><![CDATA[
<blockquote class="uncited"><div>And what is the point of<br><br> if { [string match "" "$a"] } { <br><br>when you can just do<br><br>if {$a == ""}</div></blockquote><blockquote class="uncited"><div>Instead of lindex junk, regsub the space with either %20 or %2B (+ sign) depending on what the website wants for spaces..</div></blockquote>thanks that was it needed the %20 works great <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>if {$a == ""} &lt;&lt;-- dont work <br><br>Tcl error [pub:torrent]: wrong # args: no script following "{$a == ""}" argument<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7265">MacDaddy</a> — Wed Nov 01, 2006 5:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-11-01T15:04:06-04:00</updated>

		<published>2006-11-01T15:04:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67630#p67630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67630#p67630"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67630#p67630"><![CDATA[
You need to encode the URL.<br>You can make your own proc to do it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Nov 01, 2006 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-01T07:50:11-04:00</updated>

		<published>2006-11-01T07:50:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67623#p67623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67623#p67623"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67623#p67623"><![CDATA[
And what is the point of<br><br> if { [string match "" "$a"] } { <br><br>when you can just do<br><br>if {$a == ""}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Nov 01, 2006 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-11-01T07:47:28-04:00</updated>

		<published>2006-11-01T07:47:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67622#p67622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67622#p67622"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67622#p67622"><![CDATA[
Instead of lindex junk, regsub the space with either %20 or %2B (+ sign) depending on what the website wants for spaces..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Nov 01, 2006 7:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MacDaddy]]></name></author>
		<updated>2006-11-01T06:52:42-04:00</updated>

		<published>2006-11-01T06:52:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67621#p67621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67621#p67621"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67621#p67621"><![CDATA[
<blockquote class="uncited"><div>Try:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !search pub:searchproc pub:search {n u h c a} { if {$a == ""} {  puthelp "PRIVMSG $c :usage: !search UserName"  } else {  set data [::http::geturl http://www.mydomain.com/test/ircstats.php?search=$a]  foreach line [split [::http::data $data] \n] {   puthelp "PRIVMSG $c :Retrieving User Data.... Please Wait...."   puthelp "PRIVMSG $c :$line"  }  ::http::cleanup $data }}</code></pre></div></div></blockquote>Tryed that before i get no reply and no error from the bot.<br><br>also tryed :<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !search pub:searchproc pub:search {n u h c a} { set text [lindex [split $a] 0] set text2 [lindex [split $a] 1] if { [string match "" "$a"] } {  puthelp "PRIVMSG $c $n :usage: !search UserName"  } else {  set data [::http::geturl http://www.mydomain.com/test/ircstats.php?search=$text$text2]  foreach line [split [::http::data $data] \n] {   puthelp "PRIVMSG $c :Retrieving User Data.... Please Wait...."   puthelp "PRIVMSG $c :$line"  }  ::http::cleanup $data }}</code></pre></div>that just gives whatever you type eg MacDaddy IRC <br>will become MacDaddyIRC<br><br>if i put $a in <br>puthelp "PRIVMSG $c :Retrieving Data For $a.... Please Wait...."<br><br>it sees the MacDaddy IRC just dont send it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7265">MacDaddy</a> — Wed Nov 01, 2006 6:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-11-01T06:40:32-04:00</updated>

		<published>2006-11-01T06:40:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67620#p67620</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67620#p67620"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67620#p67620"><![CDATA[
Try:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !search pub:searchproc pub:search {n u h c a} { if {$a == ""} {  puthelp "PRIVMSG $c :usage: !search UserName"  } else {  set data [::http::geturl http://www.mydomain.com/test/ircstats.php?search=$a]  foreach line [split [::http::data $data] \n] {   puthelp "PRIVMSG $c :Retrieving User Data.... Please Wait...."   puthelp "PRIVMSG $c :$line"  }  ::http::cleanup $data }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Wed Nov 01, 2006 6:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MacDaddy]]></name></author>
		<updated>2006-11-01T05:52:53-04:00</updated>

		<published>2006-11-01T05:52:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67618#p67618</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67618#p67618"/>
		<title type="html"><![CDATA[search help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67618#p67618"><![CDATA[
hey all i cant get this to work no matter what i try<br><br>what i need is for it to add the arg to the url but it only adds <br>eg !search MacDaddy works.<br>but !search MacDaddy IRC it dont see the IRC part<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !search pub:searchproc pub:search {n u h c a} { set text [lindex [split $a] 0] if { [string match "" "$a"] } {  puthelp "PRIVMSG $c $n :usage: !search UserName"  } else {  set data [::http::geturl http://www.mydomain.com/test/ircstats.php?search=$text]  foreach line [split [::http::data $data] \n] {   puthelp "PRIVMSG $c :Retrieving User Data.... Please Wait...."   puthelp "PRIVMSG $c :$line"  }  ::http::cleanup $data }}</code></pre></div>it needs to send the full arg to the php not just the first word<br><br>thanks for anyhelp <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=7265">MacDaddy</a> — Wed Nov 01, 2006 5:52 am</p><hr />
]]></content>
	</entry>
	</feed>
