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

	<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-10-15T05:29:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-15T05:29:54-04:00</updated>

		<published>2004-10-15T05:29:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41878#p41878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41878#p41878"/>
		<title type="html"><![CDATA[Re: can this respod to nick ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41878#p41878"><![CDATA[
change "$chan" to "$nick" in <div class="codebox"><p>Code: </p><pre><code>search_google $chan $results $type $search</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 15, 2004 5:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-10-15T04:48:26-04:00</updated>

		<published>2004-10-15T04:48:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41877#p41877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41877#p41877"/>
		<title type="html"><![CDATA[can this respod to nick ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41877#p41877"><![CDATA[
i got this google script<div class="codebox"><p>Code: </p><pre><code>bind pub - .google pub_googleset google(MAX) 10set google(deny_CHANS) {  "#chan1"  "#chan2"}package require httpproc pub_google {nick uhost hand chan arg} {  global google  if {[lsearch [string tolower $google(deny_CHANS)] [string tolower $chan]]!="-1"} {    return 0  }  if {$arg==""} {    putserv "PRIVMSG $chan :$nick Usage: !google &lt;search terms&gt; \[-c1(Results to return)\] \[-a(Boolean And)\]"    return 0  }  set type as_oq  set results 1  foreach flag $arg {    if {$flag=="-a"} { set type as_q ; continue } else {      if {[regexp -- {-c[0-9]*} $flag]} {set results [string range $flag 2 end]        continue      }    }    lappend search $flag  }  if {$results&gt;$google(MAX)} {    putnot $nick "Max results allowed is \002$google(MAX)\002, omitting extra"    set results $google(MAX)  }  search_google $chan $results $type $search}proc search_google {chan results type search} {  regsub -all " " $search "+" search  set url http://www.google.com/search?$type=$search&amp;num=$results  http::config -useragent "Mozilla/5.0"  set conn [http::geturl $url -headers "Referer http://www.google.com"]  set data [http::data $conn]  set count 0  set lcount 0  regsub -all .*&lt;div&gt; $data "" data  regsub -all &lt;div&gt; $data &lt;br&gt; data  regsub -all &lt;br&gt; $data \002 data  foreach line [split $data \002] {    incr lcount#    putlog "$lcount: $line"    if {$count==$results} { break }    set line2 "" ; set line1 ""    if {[regexp {(.*)&lt;p [^&gt;]*&gt;(.*)} $line match line1 line2]} {      if {$line2==""} { break }      set description ""      set desc ""      regsub -all {&lt;[^&gt;]*&gt;} $line2 "" description      if {$description!=""} {        set desc "($description)"      }      foreach word $line2 {if {[string match href=http://* [string tolower $word]]} {  regsub -all {&gt;[^&lt;]*|&lt;[^&lt;]*|href=} $word "" word  if {$results&gt;1} {      putserv "PRIVMSG $chan :Result([expr $count + 1]): \002$word\002 $desc"  } else { putserv "PRIVMSG $chan :Result: \00304\002$word\002\003 \00302$desc\003" }          incr count 1  break}      }    }  }  if {$count!=$results} {    putserv "PRIVMSG $chan :Only could find \00302\002$count\002 results\003"  }}</code></pre></div>can be made to respond to person who give the .google command ?<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Fri Oct 15, 2004 4:48 am</p><hr />
]]></content>
	</entry>
	</feed>
