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

	<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>2024-02-11T15:52:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2024-02-11T15:52:37-04:00</updated>

		<published>2024-02-11T15:52:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112529#p112529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112529#p112529"/>
		<title type="html"><![CDATA[Re: Client connections script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112529#p112529"><![CDATA[
I make it this way and its working:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">proc getipdatas {ip} {    ::http::config -useragent "lynx"    set ipq [http::geturl http://ip-api.com/json/$ip?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,offset,currency,isp,org,as,asname,reverse,mobile,proxy,hosting,query&amp;lang=fr]    set jsonData [http::data $ipq]    set data [json::json2dict $jsonData]    ::http::cleanup $ipq    return $data}</code></pre></div> <strong>script</strong> also include <br>package require json<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8470">FmX</a> — Sun Feb 11, 2024 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-02-11T15:23:46-04:00</updated>

		<published>2024-02-11T15:23:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112528#p112528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112528#p112528"/>
		<title type="html"><![CDATA[Re: Client connections script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112528#p112528"><![CDATA[
Sorry, I forget:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">package require json</code></pre></div> <strong>script</strong> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Feb 11, 2024 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2024-02-11T13:27:24-04:00</updated>

		<published>2024-02-11T13:27:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112526#p112526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112526#p112526"/>
		<title type="html"><![CDATA[Re: Client connections script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112526#p112526"><![CDATA[
I have this error:<br>Tcl error [ipcheck]: invalid command name "json2dict"<br><br>yes, bot is irc op.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8470">FmX</a> — Sun Feb 11, 2024 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-02-11T10:04:28-04:00</updated>

		<published>2024-02-11T10:04:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112524#p112524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112524#p112524"/>
		<title type="html"><![CDATA[Re: Client connections script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112524#p112524"><![CDATA[
I've a script working with unrealircd:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">package require httpbind raw - NOTICE ipcheckproc ipcheck {frm key text} {   if {[string match *!*@* $frm] || ![string match -nocase "*client connecting*" $text]} {      return   }   regexp {:\ ([^ ]+)\s\(([^@]+)@([^\)])+\)\s\[([^\]]+)} $text - unick ident host ip   set data [getipdatas $ip]   if {[dict get $data status] eq "success"} {      set country [encoding convertfrom utf-8 [dict get $data country]]      putserv "PRIVMSG #logger :$unick ($ip) is connecting from $country"   }}proc getipdatas { ip } {::http::config -useragent "lynx"set ipq [http::geturl http://ip-api.com/json/$ip?fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,offset,currency,isp,org,as,asname,reverse,mobile,proxy,hosting,query&amp;lang=fr]set data [json2dict [http::data $ipq]]::http::cleanup $ipqreturn $data}</code></pre></div> <strong>script</strong> Note that your eggdrop must be ircop and must have +scC snomask.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Feb 11, 2024 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2024-02-11T09:35:07-04:00</updated>

		<published>2024-02-11T09:35:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112523#p112523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112523#p112523"/>
		<title type="html"><![CDATA[Client connections script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112523#p112523"><![CDATA[
Hello. Does anyone have a script that shows clients connecting to the server in a channel with the user's nick, ip and location? Thank you very much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8470">FmX</a> — Sun Feb 11, 2024 9:35 am</p><hr />
]]></content>
	</entry>
	</feed>
