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

	<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>2020-08-31T17:21:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-08-31T17:21:10-04:00</updated>

		<published>2020-08-31T17:21:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108951#p108951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108951#p108951"/>
		<title type="html"><![CDATA[Editing connect script to !whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108951#p108951"><![CDATA[
So found this piece of code on this forum.<br><a href="http://forum.egghelp.org/viewtopic.php?t=20844" class="postlink">http://forum.egghelp.org/viewtopic.php?t=20844</a>  &lt;&lt; this page<div class="codebox"><p>Code: </p><pre><code>package require http package require json set ExpChan "#opers" bind raw - NOTICE Client_Connect proc Client_Connect {from key arg} {    if {[string match *!*@* $from] || ![string match -nocase "*client connecting*" $arg]} { return }    if {[scan $arg %\[^\:\]\:%\[^(\](%\[^@\]@%\[^\)\] _ nick ident host] == "4"} {       set token [http::geturl http://ip-api.com/json/$host?fields=status,city,isp,country,query,regionName,countryCode]       set data [json::json2dict [http::data $token]]       ::http::cleanup $token       if {[dict get $data status] eq "success"} {          puthelp "PRIVMSG $::ExpChan :\002Nick\002: $nick - \002IP\002: [dict get $data query] - \002Country\002: [dict get $data country] -\             \002City\002: [dict get $data city] - \002ISP\002: [dict get $data isp] [dict get $data countryCode]"       } else {          putcmdlog "Error! it fails to get data for this $host"       }    }    return 0 }</code></pre></div>Possible to make this code show normal whois info on !whois And show the location of,         <br>The ip.<br> <br>Would be super appreciated if someone could edit this to do so, Thanks in advanced  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Mon Aug 31, 2020 5:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
