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

	<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>2018-09-28T06:50:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2018-09-28T06:50:20-04:00</updated>

		<published>2018-09-28T06:50:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107087#p107087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107087#p107087"/>
		<title type="html"><![CDATA[whois info by JeFFOsZ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107087#p107087"><![CDATA[
Thank you for the response. Your solution is correct willy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Fri Sep 28, 2018 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-09-23T17:01:22-04:00</updated>

		<published>2018-09-23T17:01:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107082#p107082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107082#p107082"/>
		<title type="html"><![CDATA[Re: whois info by JeFFOsZ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107082#p107082"><![CDATA[
1.) Reference:  <a href="http://forum.egghelp.org/viewtopic.php?p=98054#98054" class="postlink">http://forum.egghelp.org/viewtopic.php?p=98054#98054</a><br>2.)  This is untested.<br>3.)  The edits are marked by comments, to you can find them easily.<div class="codebox"><p>Code: </p><pre><code>set whoisinfo(version) "20.18"set whoisinfo(trigger) "!infoip"set whoisinfo(port) 43set whoisinfo(ripe) "whois.ripe.net"set whoisinfo(arin) "whois.arin.net"set whoisinfo(apnic) "whois.apnic.net"set whoisinfo(lacnic) "whois.lacnic.net"set whoisinfo(afrinic) "whois.afrinic.net"bind pub - $whoisinfo(trigger) pub_whoisinfo##  Here's the first line to addsetudef flag whoisinfoproc whoisinfo_setarray {} {global queryset query(netname) "(none)"set query(country) "(none)"set query(orgname) "(none)"set query(orgid) "(none)"set query(range) "(none)"}proc whoisinfo_display { chan } {global queryputlog "Firstline: $query(firstline)"puthelp "PRIVMSG $chan :2Range: 04$query(range) |02 Netname: 14$query(netname) | Organisation: 10$query(orgname) |02 Country: 15$query(country)"}proc pub_whoisinfo {nick uhost handle chan search} {global whoisinfoglobal query### Here's the second edit.        if {![channel get $chan whoisinfo]} {               return 0           }###  end of additional lines #####    whoisinfo_setarray if {[whoisinfo_whois $whoisinfo(arin) $search]==1} {if {[string compare [string toupper $query(orgid)] "RIPE"]==0} {if {[whoisinfo_whois $whoisinfo(ripe) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "APNIC"]==0} {if {[whoisinfo_whois $whoisinfo(apnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "LACNIC"]==0} {if {[whoisinfo_whois $whoisinfo(lacnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "AFRINIC"]==0} {if {[whoisinfo_whois $whoisinfo(afrinic) $search]==1} {whoisinfo_display $chan} } else {whoisinfo_display $chan}} else {if { [info exist query(firstline)] } {puthelp "PRIVMSG $chan :\[\002Whois\002\] Firstline: $query(firstline)"} else {puthelp "PRIVMSG $chan :\[\002Whois\002\] Error?"}}}proc whoisinfo_whois {server search} {global whoisinfoglobal queryset desccount 0set firstline 0set reply 0putlog "Whois: $server:$whoisinfo(port) -&gt; $search"if {[catch {set sock [socket -async $server $whoisinfo(port)]} sockerr]} {      puthelp "PRIVMSG $chan :\[\002Whois\002\] Error: $sockerr. Try again later."      close $sockreturn 0    }puts $sock $searchflush $sockwhile {[gets $sock whoisline]&gt;=0} {putlog "Whois: $whoisline"if {[string index $whoisline 0]!="#" &amp;&amp; [string index $whoisline 0]!="%" &amp;&amp; $firstline==0} {if {[string trim $whoisline]!=""} {set query(firstline) [string trim $whoisline]set firstline 1}}if {[regexp -nocase {netname:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner-c:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1 } elseif {[regexp -nocase {country:(.*)} $whoisline all item]} {set query(country) [string trim $item]set reply 1} elseif {[regexp -nocase {descr:(.*)} $whoisline all item] &amp;&amp; $desccount==0} {set query(orgname) [string trim $item]set desccount 1set reply 1} elseif {[regexp -nocase {orgname:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {orgid:(.*)} $whoisline all item]} {set query(orgid) [string trim $item]set reply 1} elseif {[regexp -nocase {inetnum:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1} elseif {[regexp -nocase {netrange:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1}}close $sockreturn $reply}putlog "whoisinfo.tcl v$whoisinfo(version) by JeFFOsZ: loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Sep 23, 2018 5:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2018-09-23T06:50:26-04:00</updated>

		<published>2018-09-23T06:50:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107081#p107081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107081#p107081"/>
		<title type="html"><![CDATA[whois info by JeFFOsZ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107081#p107081"><![CDATA[
can anyone help me so that the script from JeFFOsZ whoisinfo can use .chanset so that only certain channels can function<br><div class="codebox"><p>Code: </p><pre><code>set whoisinfo(version) "20.18"set whoisinfo(trigger) "!infoip"set whoisinfo(port) 43set whoisinfo(ripe) "whois.ripe.net"set whoisinfo(arin) "whois.arin.net"set whoisinfo(apnic) "whois.apnic.net"set whoisinfo(lacnic) "whois.lacnic.net"set whoisinfo(afrinic) "whois.afrinic.net"bind pub - $whoisinfo(trigger) pub_whoisinfoproc whoisinfo_setarray {} {global queryset query(netname) "(none)"set query(country) "(none)"set query(orgname) "(none)"set query(orgid) "(none)"set query(range) "(none)"}proc whoisinfo_display { chan } {global queryputlog "Firstline: $query(firstline)"puthelp "PRIVMSG $chan :2Range: 04$query(range) |02 Netname: 14$query(netname) | Organisation: 10$query(orgname) |02 Country: 15$query(country)"}proc pub_whoisinfo {nick uhost handle chan search} {global whoisinfoglobal querywhoisinfo_setarray if {[whoisinfo_whois $whoisinfo(arin) $search]==1} {if {[string compare [string toupper $query(orgid)] "RIPE"]==0} {if {[whoisinfo_whois $whoisinfo(ripe) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "APNIC"]==0} {if {[whoisinfo_whois $whoisinfo(apnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "LACNIC"]==0} {if {[whoisinfo_whois $whoisinfo(lacnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "AFRINIC"]==0} {if {[whoisinfo_whois $whoisinfo(afrinic) $search]==1} {whoisinfo_display $chan} } else {whoisinfo_display $chan}} else {if { [info exist query(firstline)] } {puthelp "PRIVMSG $chan :\[\002Whois\002\] Firstline: $query(firstline)"} else {puthelp "PRIVMSG $chan :\[\002Whois\002\] Error?"}}}proc whoisinfo_whois {server search} {global whoisinfoglobal queryset desccount 0set firstline 0set reply 0putlog "Whois: $server:$whoisinfo(port) -&gt; $search"if {[catch {set sock [socket -async $server $whoisinfo(port)]} sockerr]} {      puthelp "PRIVMSG $chan :\[\002Whois\002\] Error: $sockerr. Try again later."      close $sockreturn 0    }puts $sock $searchflush $sockwhile {[gets $sock whoisline]&gt;=0} {putlog "Whois: $whoisline"if {[string index $whoisline 0]!="#" &amp;&amp; [string index $whoisline 0]!="%" &amp;&amp; $firstline==0} {if {[string trim $whoisline]!=""} {set query(firstline) [string trim $whoisline]set firstline 1}}if {[regexp -nocase {netname:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner-c:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1 } elseif {[regexp -nocase {country:(.*)} $whoisline all item]} {set query(country) [string trim $item]set reply 1} elseif {[regexp -nocase {descr:(.*)} $whoisline all item] &amp;&amp; $desccount==0} {set query(orgname) [string trim $item]set desccount 1set reply 1} elseif {[regexp -nocase {orgname:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {orgid:(.*)} $whoisline all item]} {set query(orgid) [string trim $item]set reply 1} elseif {[regexp -nocase {inetnum:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1} elseif {[regexp -nocase {netrange:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1}}close $sockreturn $reply}putlog "whoisinfo.tcl v$whoisinfo(version) by JeFFOsZ: loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Sun Sep 23, 2018 6:50 am</p><hr />
]]></content>
	</entry>
	</feed>
