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

	<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>2022-04-11T13:56:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-11T13:56:22-04:00</updated>

		<published>2022-04-11T13:56:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111061#p111061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111061#p111061"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111061#p111061"><![CDATA[
in conclusion after testing on server of AdmiraL we found this to work well incase others need it<br><br>keep in mind this is for unrealircd 3.2 its not recommended to use old EOL ircd versions tho<br><div class="codebox"><p>Code: </p><pre><code>package require httppackage require jsonset ExpiChan "#services"bind raw - NOTICE Clientiproc Clienti {from keyword text} { if {[string match -nocase "*client exiting*" $text]} {  if {[scan $text {%[^:]:%[^:]: %[^!]!%[^@]@%[^ ]} 1 2 nick ident host] == "5"} {     set token [http::geturl http://ip-api.com/json/$host?fields=status,message,country,countryCode,region,continent,continentCode,regionName,city,zip,lat,lon,timezone,district,isp,org,as,asname,reverse,mobile,proxy,hosting,query]      set data [json::json2dict [http::data $token]]      ::http::cleanup $token      if {[dict get $data status] eq "success"} {         puthelp "PRIVMSG $::ExpChan 5$nick  4EXIT: 3IP14: [dict get $data query] - 3Shteti14: [dict get $data country] - 3Qyteti14: [dict get $data city] - 3Mobile4: [dict get $data mobile] - 3Proxy4: [dict get $data proxy]"      } else {         putcmdlog "Error! it fails to get data for this $host"      }   } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Apr 11, 2022 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-10T12:32:02-04:00</updated>

		<published>2022-04-10T12:32:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111059#p111059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111059#p111059"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111059#p111059"><![CDATA[
Ive sent you a pm for test credentials<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Apr 10, 2022 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AdmiraL]]></name></author>
		<updated>2022-04-10T11:18:45-04:00</updated>

		<published>2022-04-10T11:18:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111058#p111058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111058#p111058"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111058#p111058"><![CDATA[
<blockquote class="uncited"><div>it seems you are using an old no longer supported version of UnrealIRCD<br>in the new version i believe they have a module printing that out with server notice the geoip info and such<br><br>im not running UnrealIRCD myselve but am running InspIRCd else i could have tested it but if u let me know we could test it out on your network if you like</div></blockquote>I have tested and its the same.. i dont know why!<br><br>the problem its here:<br>Client exiting at mibbit.*: <strong class="text-strong">Njanich!Mibbit@194.230.144.53</strong><br><br>when the client connected show this message:<br>Client connecting at mibbit.*: <strong class="text-strong">Gimi (Mibbit@87.238.213.218)</strong><br><br>With connect its okay with exiting make problem!<br><br>yes we can tested together when you have time..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12900">AdmiraL</a> — Sun Apr 10, 2022 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-10T09:51:00-04:00</updated>

		<published>2022-04-10T09:51:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111057#p111057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111057#p111057"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111057#p111057"><![CDATA[
un tested yet but you  could try this:<br><div class="codebox"><p>Code: </p><pre><code> proc Clienti {from key arg} {package require httppackage require jsonset ExpiChan "#services"bind raw - NOTICE Clientiproc Clienti {from keyword text} { if {[string match -nocase "*client exiting*" $text]} {        set nick [lindex [split $text] 6]        set hostt [lindex [split $text] 7]        set host [join [lrange [split $hostt @] 1 end]]     set token [http::geturl http://ip-api.com/json/$host?fields=status,message,country,countryCode,region,continent,continentCode,regionName,city,zip,lat,lon,timezone,district,isp,org,as,asname,reverse,mobile,proxy,hosting,query]      set data [json::json2dict [http::data $token]]      ::http::cleanup $token      if {[dict get $data status] eq "success"} {         puthelp "PRIVMSG $::ExpChan 5[regsub -all {([^:]+:)} $nick ""]- 4EXIT: 3IP14: [dict get $data query] - 3Shteti14: [dict get $data country] - 3Qyteti14: [dict get $data city] - 3Mobile4: [dict get $data mobile] - 3Proxy4: [dict get $data proxy]"      } else {         putcmdlog "Error! it fails to get data for this $host"      }   }} </code></pre></div>i took the examples at : <a href="http://forum.egghelp.org/viewtopic.php?p=102856" class="postlink">http://forum.egghelp.org/viewtopic.php?p=102856</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Apr 10, 2022 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-10T09:19:23-04:00</updated>

		<published>2022-04-10T09:19:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111056#p111056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111056#p111056"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111056#p111056"><![CDATA[
it seems you are using an old no longer supported version of UnrealIRCD<br>in the new version i believe they have a module printing that out with server notice the geoip info and such<br><br>im not running UnrealIRCD myselve but am running InspIRCd else i could have tested it but if u let me know we could test it out on your network if you like<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Apr 10, 2022 9:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AdmiraL]]></name></author>
		<updated>2022-04-10T06:10:27-04:00</updated>

		<published>2022-04-10T06:10:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111054#p111054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111054#p111054"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111054#p111054"><![CDATA[
<blockquote class="uncited"><div>I have never used [scan] before, but will follow your lead from above.<br><br>And assuming that the string in $arg is as you stated above...<blockquote class="uncited"><div>* 16:37 -hub.*- *** Notice -- Client exiting at mibbit.*.net: lina!Mibbit@185.179.31.20 (U largua nga *.net)</div></blockquote>I might use something like this.<div class="codebox"><p>Code: </p><pre><code>if {[scan $arg {%[^:]:%[^:]: %[^!]!%[^@]@%[^ ]} 1 2 nick ident host] == "5"} {</code></pre></div></div></blockquote>Hello Spike.<br><br>No its not correct..<br><br>i have two code, one its for connect and one its for disconnect.<br><br>When i was on Unrealircd5 its was correct and now am on Unreal3.2 and connect its correct and its okay.. disconnect make me problem..<br><br>I Will paste connect and disconnect and u see what i mean..<br><br>------------<br><br>When a user connected  <br><strong class="text-strong">* 12:01 -hub.*- *** Notice -- Client connecting at mibbit.*: Emri8 (Mibbit@37.201.194.29)</strong><br><br>show me on the channel #services<br><br><strong class="text-strong">Emri8 - IP: 37.201.194.29 - Shteti: Germany - Qyteti: Langen - Mobile: false - Proxy: false</strong><br><div class="codebox"><p>Code: </p><pre><code>package require httppackage require jsonset ExpChan "#services"bind raw - NOTICE Clientproc Client {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,message,country,countryCode,region,continent,continentCode,regionName,city,zip,lat,lon,timezone,district,isp,org,as,asname,reverse,mobile,proxy,hosting,query]      set data [json::json2dict [http::data $token]]      ::http::cleanup $token      #if {[dict get $data status] eq "success"} { return }         puthelp "PRIVMSG $::ExpChan 5[regsub -all {([^:]+:)} $nick ""]- 3IP14: [dict get $data query] - 3Shteti14: [dict get $data country] - 3Qyteti14: [dict get $data city] - 3Mobile4: [dict get $data mobile] - 3Proxy4: [dict get $data proxy]"      } else {         putcmdlog "Error! it fails to get data for this $host"      }   }   return 0}</code></pre></div><br><br>And when a user make disconnect(exit) Server notices show me <br><strong class="text-strong">* 12:03 -hub.*- *** Notice -- Client exiting at mibbit.*: Njanich!Mibbit@194.230.144.53 (Client exited)</strong><br><div class="codebox"><p>Code: </p><pre><code>#######################package require httppackage require jsonset ExpiChan "#services"bind raw - NOTICE Clientiproc Clienti {from key arg} {   if {[string match *@* $from] || ![string match -nocase "*Client exiting*" $arg]} { return }   if {[scan $arg {%[^:]:%[^:]: %[^!]!%[^@]@%[^ ]} 1 2 nick ident host] == "5"} {      set token [http::geturl http://ip-api.com/json/$host?fields=status,message,country,countryCode,region,continent,continentCode,regionName,city,zip,lat,lon,timezone,district,isp,org,as,asname,reverse,mobile,proxy,hosting,query]      set data [json::json2dict [http::data $token]]      ::http::cleanup $token      #if {[dict get $data status] eq "success"} {         puthelp "PRIVMSG $::ExpChan 5[regsub -all {([^:]+:)} $nick ""]- 3DUL IP14: [dict get $data query] - 3Shteti14: [dict get $data country] - 3Qyteti14: [dict get $data city] - 3Mobile4: [dict get $data mobile] - 3Proxy4: [dict get $data proxy]"      } else {         putcmdlog "Error! it fails to get data for this $host"      }   }   return 0}</code></pre></div><br><br>The reason why i will have this tcl code because to me are active 300+ users online and i i have make module DNS and ConnectServ (unload) delete because i want to have all what we are on server PRIVACY on our life..<br><br>* 12:04 * Joins: Kushtrimi (<a href="mailto:Mibbit@8D5FB041.BFFCBA9F.6072C6B2.IP">Mibbit@8D5FB041.BFFCBA9F.6072C6B2.IP</a>)<br>* 12:04 * Joins: Ela_ (<a href="mailto:Mibbit@4C9BFBB1.65F8D88D.24FA5EED.IP">Mibbit@4C9BFBB1.65F8D88D.24FA5EED.IP</a>)<br>* 12:04 * Joins: Tonita (<a href="mailto:Mibbit@9C39A8B3.37AB3C75.89F8A913.IP">Mibbit@9C39A8B3.37AB3C75.89F8A913.IP</a>)<br>* 12:04 * Joins: Rrezjaa (<a href="mailto:Mibbit@32710816.C7DCAFFC.4ADB31B1.IP">Mibbit@32710816.C7DCAFFC.4ADB31B1.IP</a>)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12900">AdmiraL</a> — Sun Apr 10, 2022 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-04-09T14:36:30-04:00</updated>

		<published>2022-04-09T14:36:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111053#p111053</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111053#p111053"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111053#p111053"><![CDATA[
I have never used [scan] before, but will follow your lead from above.<br><br>And assuming that the string in $arg is as you stated above...<blockquote class="uncited"><div>* 16:37 -hub.*- *** Notice -- Client exiting at mibbit.*.net: lina!Mibbit@185.179.31.20 (U largua nga *.net)</div></blockquote>I might use something like this.<div class="codebox"><p>Code: </p><pre><code>if {[scan $arg {%[^:]:%[^:]: %[^!]!%[^@]@%[^ ]} 1 2 nick ident host] == "5"} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Apr 09, 2022 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AdmiraL]]></name></author>
		<updated>2022-04-09T10:42:22-04:00</updated>

		<published>2022-04-09T10:42:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111052#p111052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111052#p111052"/>
		<title type="html"><![CDATA[Disconnect User - Check IP]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111052#p111052"><![CDATA[
Hello all..<br><br>I need a little help.<br><br>I use at the moment Unreal3.2 and i need this script to make correct..<br><br>i now what is problem, but i can't solved.<br><br>when a user make exit(disconnect) show me on the status this: <br><br>* 16:37 -hub.*- *** Notice -- Client exiting at mibbit.*.net: <strong class="text-strong">lina!Mibbit@185.179.31.20</strong> (U largua nga *.net)<br><br>I have make with bold what is the problem! <br><div class="codebox"><p>Code: </p><pre><code>package require httppackage require jsonset ExpiChan "#services"bind raw - NOTICE Clientiproc Clienti {from key arg} {   if {[string match *!*@* $from] || ![string match -nocase "*Client exiting*" $arg]} { return }[b]   if {[scan $arg %\[^\:\]\:%\[^(\](%\[^@\]@%\[^\)\] _ nick ident host] == "4"} {[/b]      set token [http::geturl http://ip-api.com/json/$host?fields=status,message,country,countryCode,region,continent,continentCode,regionName,city,zip,lat,lon,timezone,district,isp,org,as,asname,reverse,mobile,proxy,hosting,query]      set data [json::json2dict [http::data $token]]      ::http::cleanup $token      #if {[dict get $data status] eq "success"} {         puthelp "PRIVMSG $::ExpChan 5[regsub -all {([^:]+:)} $nick ""]- 4EXIT: 3IP14: [dict get $data query] - 3Shteti14: [dict get $data country] - 3Qyteti14: [dict get $data city] - 3Mobile4: [dict get $data mobile] - 3Proxy4: [dict get $data proxy]"      } else {         putcmdlog "Error! it fails to get data for this $host"      }   }   return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12900">AdmiraL</a> — Sat Apr 09, 2022 10:42 am</p><hr />
]]></content>
	</entry>
	</feed>
