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

	<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>2005-04-11T18:44:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-11T17:39:55-04:00</updated>

		<published>2005-04-11T17:39:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48040#p48040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48040#p48040"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48040#p48040"><![CDATA[
it wasn't another google script ... it was another script with the same proc name ... screwed things up.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Mon Apr 11, 2005 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-11T18:44:32-04:00</updated>

		<published>2005-04-11T17:22:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48039#p48039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48039#p48039"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48039#p48039"><![CDATA[
This was paragraph 3 in my first post <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><blockquote class="uncited"><div>have you accidently loaded another google script? </div></blockquote>PS: a scrip with the proc name "pub:google" is a google script, whatever it does, its related to google...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 11, 2005 5:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-11T15:14:08-04:00</updated>

		<published>2005-04-11T15:14:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48031#p48031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48031#p48031"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48031#p48031"><![CDATA[
found my issue, it seems that one of my other scripts is corrupting the other scripts ... thanks. now I have to and try to fix the broken script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Mon Apr 11, 2005 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Linux]]></name></author>
		<updated>2005-04-11T15:04:04-04:00</updated>

		<published>2005-04-11T15:04:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48028#p48028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48028#p48028"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48028#p48028"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># by murf# Commands# .google keyword(s) &lt;# of results&gt;# e.g. .google sick 5# default number of returnsset google_def_num 4# max number of returnsset google_max 10set glpubbind .googleset gl_output "NOTICE $nick"bind pub -|- $glpubbind pub_googleproc pub_google {nick uhost handle chan search} {  global gl_ouput  set gl_output "NOTICE $nick"  if {[llength $search] == 0} {     puthelp "$gl_output : Whatcha searchin for fool!?"     return 0  }  set url [google_url $search $nick $chan]  google_getpage $url  return 0}# Google_url ## Takes input and parses to set the url, returns the urlproc google_url {search nick chan} {  global google_def_num google_max gl_output  set google_num [lindex $search end]  if {[regexp { [0-9]+} $search match $google_num]} {     if {$google_num &gt; $google_max} { set google_num $google_max }     set search [lrange $search 0 [expr {[llength $search] - 2}]]  } else {     set google_num $google_def_num  }  if {$google_num &gt;= 5} {      set gl_output "NOTICE $nick"  } else {     set gl_output "PRIVMSG $chan"  }  regsub -all { } $search {+} search   set url "/search?hl=en&amp;num=$google_num&amp;lr=&amp;ie=ISO-8859-1&amp;q=$search"  return $url}# google_getpage ## gets the webpage and parses for the returnsproc google_getpage {url} {   global gl_output## Open socket   if {[catch {set glsock [socket -async www.google.com 80]} sockerr]} {      puthelp "NOTICE $nick :$sockerr"      puthelp "NOTICE $nick :Try again later, look out the window till then!"      close $glsock      return 0   }   puts $glsock "GET $url"   flush $glsock   set i 0   set j 1   set glout [gets $glsock]  while {[regexp {Dissatisfied with your results?} $glout] == 0} {     set glout [gets $glsock]     incr i     if {$i &gt;= 150} {        break     }      if {[regexp {#008000&gt;(.*?) - } $glout match gl_result($j)]} {        puthelp "$gl_output :$j. http://$gl_result($j)"        incr j     }  }  close $glsock  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4783">Linux</a> — Mon Apr 11, 2005 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Linux]]></name></author>
		<updated>2005-04-11T14:56:12-04:00</updated>

		<published>2005-04-11T14:56:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48026#p48026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48026#p48026"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48026#p48026"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>.set errorInfo doesn't work...</div></blockquote>then you have probably it disabled in the .conf file ^^<br><br>but very strange, if you really checked all I mentioned, I cannot help here.<br>neither my script neither the script posted above can produce that error as they are, there must be an other script interferring with them (unless you do a .restart, once loaded scripts won't unload just because you removed their source and did a .rehash).</div></blockquote>Well, restart your bot and load the scripts seperately i.e. 1 by 1 and check out if the problem still there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4783">Linux</a> — Mon Apr 11, 2005 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-11T14:41:26-04:00</updated>

		<published>2005-04-11T14:41:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48024#p48024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48024#p48024"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48024#p48024"><![CDATA[
where is the conf file do I look to enable it ... I can't find it ...<br><br>is there anyone else that can help?<br><br>it has to be an issue with TCL... what version are you running?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Mon Apr 11, 2005 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-11T14:30:45-04:00</updated>

		<published>2005-04-11T14:30:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48023#p48023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48023#p48023"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48023#p48023"><![CDATA[
<blockquote class="uncited"><div>.set errorInfo doesn't work...</div></blockquote>then you have probably it disabled in the .conf file ^^<br><br>but very strange, if you really checked all I mentioned, I cannot help here.<br>neither my script neither the script posted above can produce that error as they are, there must be an other script interferring with them (unless you do a .restart, once loaded scripts won't unload just because you removed their source and did a .rehash).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 11, 2005 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-11T14:21:02-04:00</updated>

		<published>2005-04-11T14:21:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48022#p48022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48022#p48022"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48022#p48022"><![CDATA[
I am running egghttp.tcl and your google script and I still get the error<br><br><strong class="text-strong">wrong # args: should be "join nick uhost hand chan"</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Mon Apr 11, 2005 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-11T14:15:29-04:00</updated>

		<published>2005-04-11T14:15:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48021#p48021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48021#p48021"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48021#p48021"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>Command bindings:  TYPE FLGS     COMMAND              HITS BINDING (TCL)  pub  -|-      !help                   1 pub:help  pub  -|-      !google                 2 pub:google</code></pre></div>I have a lot more binds but that is the only google bind.<br><br>.set errorInfo doesn't work...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Mon Apr 11, 2005 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-11T14:11:33-04:00</updated>

		<published>2005-04-11T14:11:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48020#p48020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48020#p48020"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48020#p48020"><![CDATA[
this is basicly the same idea of script, just a bit optimized and rewritten from the package http which often causes problems to the save and non-blocking egghttp (package is the wrong expression, its just a tcl script providing some functions).<br><a href="http://forum.egghelp.org/viewtopic.php?t=9207" class="postlink">http://forum.egghelp.org/viewtopic.php?t=9207</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 11, 2005 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-11T13:48:32-04:00</updated>

		<published>2005-04-11T13:48:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48019#p48019</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48019#p48019"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48019#p48019"><![CDATA[
I will give more info as soon as I get home, for now what is your egghttp port? Can you give me a link?<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Mon Apr 11, 2005 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-11T13:33:18-04:00</updated>

		<published>2005-04-11T13:33:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48018#p48018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48018#p48018"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48018#p48018"><![CDATA[
have completly restarted your bot with that script?<br>can you give us the more detailed error from '.set errorInfo'?<br>have you accidently loaded another google script?<br>if you have my egghttp port of this script in memory you would encounter the problem because of this line:<blockquote class="uncited"><div>pub:google $nick $uhost $hand $chan google $arg</div></blockquote>you can easily check this by doing a '.binds pub' in the partyline, if you have a bind to pub to the function pub:google:cmd this would proabably be your problem and you would only have to unbind that (if you dont want to .restart your bot) ^^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 11, 2005 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-11T13:15:19-04:00</updated>

		<published>2005-04-11T13:15:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48017#p48017</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48017#p48017"/>
		<title type="html"><![CDATA[TCL Error: wrong # args - google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48017#p48017"><![CDATA[
Hello, I just reinstalled my eggdrop bot and I am having and issue with getting several of my old scripts working. I have installed this on a new server. <br><br>My server is gentoo, with the latest version of tcl available in an ebuild. I can't tell you exactly what version I am using.<br><br>I get the following error in regards to this line (proc pub:google { nick uhost handle channel arg } {) ...<br><br><strong class="text-strong">wrong # args: should be { join nick uhost handle channel arg }</strong><br><br>I have tried changing it but still doesn't work, I just get another error. Can anyone help? What is causing this? Something new in TCL?<br><br>Thanks<br>-Erik<br><br>The google.tcl file is this:<div class="codebox"><p>Code: </p><pre><code># google.tcl v0.2.1## !google keywords - displays the first related website found from google in the channel# !image keywords  - displays the first related image found on google in the channel# !file keywords   - displays the first mirror download link found on filemirrors in the channel## by aNa|0Gue - analogue@glop.org - http://www.glop.org/## 04/17/2002 v0.2.1 useragent fix by FANpackage require httpbind pub - !google pub:googlebind pub - !image pub:imagebind pub - !file pub:fileset agent "Mozilla"proc pub:google { nick uhost handle channel arg } { global agentif {[llength $arg]==0} {putserv "PRIVMSG $channel :hey ! tappes des mots boulet !"} else {set query "http://www.google.de/search?btnI=&amp;q="for { set index 0 } { $index&lt;[llength $arg] } { incr index } {set query "$query[lindex $arg $index]"if {$index&lt;[llength $arg]-1} then {set query "$query+"}}#putserv "PRIVMSG $channel :$query"                set token [http::config -useragent $agent]set token [http::geturl $query]puts stderr ""upvar #0 $token stateset max 0foreach {name value} $state(meta) {if {[regexp -nocase ^location$ $name]} {set newurl [string trim $value]putserv "PRIVMSG $channel :$newurl"}}}}proc pub:image { nick uhost handle channel arg } { global agentif {[llength $arg]==0} {putserv "PRIVMSG $channel :hey ! tappes des mots boulet !"} else {set query "http://images.google.de/images?btnI=&amp;q="for { set index 0 } { $index&lt;[llength $arg] } { incr index } {set query "$query[lindex $arg $index]"if {$index&lt;[llength $arg]-1} then {set query "$query+"}}append query &amp;imgsafe=off#putserv "PRIVMSG $channel :$query"                set token [http::config -useragent $agent]set token [http::geturl $query]puts stderr ""upvar #0 $token stateset max 0foreach {name value} $state(meta) {if {[regexp -nocase ^location$ $name]} {set starturl "http://"set newurl [string trim $value]set newurl [string range $newurl [expr [string first = $newurl]+1] [expr [string first &amp; $newurl]-1]]append starturl $newurlputserv "PRIVMSG $channel :$starturl"}}}}proc pub:file { nick uhost handle channel arg } { global agentif {[llength $arg]==0} {putserv "PRIVMSG $channel :hey ! tappes un nom de fichier boulet !"} else {set query "http://www.filemirrors.com/find.src?file="set query "$query[lindex $arg 0]"#putserv "PRIVMSG $channel :$query"                set token [http::config -useragent $agent]set token [http::geturl $query]set html  [http::data $token]puts stderr ""upvar #0 $token stateset max 0#foreach {name value} $state(meta) {#putserv "PRIVMSG $channel :$value"#}#putserv "PRIVMSG $channel :$html"set result "[lindex $html 1]"set result [string range $result [expr [string first = $result]+2] [expr [string first &gt; $result]-2]]putserv "PRIVMSG $channel :$result"}}putlog "Google v0.2.1 - LOADED!"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Mon Apr 11, 2005 1:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
