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

	<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>2023-09-02T09:27:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-09-01T09:31:07-04:00</updated>

		<published>2023-09-01T09:31:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112105#p112105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112105#p112105"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112105#p112105"><![CDATA[
check this thread for the use of colors : <br><br><a href="http://forum.egghelp.org/viewtopic.php?p=104917" class="postlink">http://forum.egghelp.org/viewtopic.php?p=104917</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Sep 01, 2023 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-09-01T06:03:16-04:00</updated>

		<published>2023-09-01T06:03:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112104#p112104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112104#p112104"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112104#p112104"><![CDATA[
Ohh Simo, I haven't seen your code until now...<br>Anope services is too log.<br>With this I only see what enters the chat to act on certain occasions.<br>Thank you very much, I'm going to test.<br><br>PD: where do I find the list of colors to play with colors?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Fri Sep 01, 2023 6:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-09-01T05:56:54-04:00</updated>

		<published>2023-09-01T05:56:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112103#p112103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112103#p112103"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112103#p112103"><![CDATA[
CrazyCat, thank you very much for your work and time.<br>Looking at the code with another previous one that you helped me, I did not think that I could put almost the same ...<br>Again, thank you very much .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Fri Sep 01, 2023 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-08-31T14:29:59-04:00</updated>

		<published>2023-08-31T14:29:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112102#p112102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112102#p112102"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112102#p112102"><![CDATA[
Btw there is a module in inspircd chanlog that does output to a channel as well like connect disconnect nickchange filters and so on<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Aug 31, 2023 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-09-02T09:27:05-04:00</updated>

		<published>2023-08-30T20:44:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112101#p112101</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112101#p112101"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112101#p112101"><![CDATA[
Try this if it works as expected. <br><div class="codebox"><p>Code: </p><pre><code>set outputchan "#debug"bind raw - NOTICE server:notices proc server:notices {from keyword text} {  global outputchan  set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]  if {[regexp -nocase { REMOTECONNECT: Client connecting at (\S+\:) ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -&gt;  server nick ident host ip realname] } {  putquick "PRIVMSG $outputchan :\002\00312,00 Server\: [string trimright $server ":"] \00307 Nick\:  $nick  \00310 IP\: $ip \00302 Host\: $host \00310 RealName\: $realname \002\017" }  if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -&gt; port class nick ident host  ip realname]} { return 0 }  putquick "PRIVMSG $outputchan :\002\00312,00 Nick\: $nick \00310 IP\: $ip \00302 Host\: $host \00310 ReaLName\: $realname \00306  Port\: $port \002\017"   return 0}</code></pre></div>Ive tested it and it seems to work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Aug 30, 2023 8:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-08-30T17:49:01-04:00</updated>

		<published>2023-08-30T17:49:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112100#p112100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112100#p112100"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112100#p112100"><![CDATA[
Hello , CrazyCat ;<br><br>I'll post some proxy connections about inspircd :<br><blockquote class="uncited"><div>[23:22] -irc.server.net- *** CONNECT: Client connecting on port 6667 (class irc): mlel0d_b0b!nogc@187.208.208.17 (187.208.208.17) [onoq]<br>[23:22] -irc.server.net- *** CONNECT: Client connecting on port 6667 (class irc): CiSimca__!lbvd@187.147.53.21 (187.147.53.21) [khlvu]<br>[23:22] -irc.server.net- *** CONNECT: Client connecting on port 6667 (class irc): SePettern!kjop@187.213.249.32 (187.213.249.32) [lpw]<br>[23:22] -irc.server.net- *** CONNECT: Client connecting on port 6667 (class irc): CiKibbo!uix@187.232.48.93 (187.232.48.93) [euk]</div></blockquote><br>I post some examples of connection to the server.<br>Right now the real ip does not show the brackets ( )<br>But the realname does appear in square brackets [ ] .<br><blockquote class="uncited"><div><br>23:45:31 pell   server: S05-kx8551951!<a href="mailto:Ircap@ip72-195-34-60.oc.oc.cox.net">Ircap@ip72-195-34-60.oc.oc.cox.net</a> IP-real: 72.195.34.60 RN [I3wjfCN8LzIwMjIvMTAvMDYvNjMzZTIwZDg4NWRkZl9sYXJnZS5qcGc=] Port: 6667 <br>23:45:32 pell   server: S05-kv2798442!Ircap@142.54.232.6 IP-real: 142.54.232.6 RN [I3wjfCN8LzIwMjIvMTAvMDYvNjMzZTIwZDg4NWRkZl9sYXJnZS5qcGc=] Port: 6667 <br>23:45:32 pell   server: S05-zq56519805!Ircap@221.10.151.38 IP-real: 221.10.151.38 RN [I3wjfCN8LzIwMjIvMTAvMDYvNjMzZTIwZDg4NWRkZl9sYXJnZS5qcGc=] Port: 6667 <br>23:45:35 pell   server: S05-vy7659207!<a href="mailto:Ircap@ip72-195-34-58.oc.oc.cox.net">Ircap@ip72-195-34-58.oc.oc.cox.net</a> IP-real: 72.195.34.58 RN [I3wjfCN8LzIwMjIvMTAvMDYvNjMzZTIwZDg4NWRkZl9sYXJnZS5qcGc=] Port: 6667 <br><br>23:47:58 pell   server: S05-xy36904851!Ircap@184.181.217.206 IP-real: 184.181.217.206 RN [ircap;IRcap[8.7] Port: 6667 <br>23:47:58 pell   server: S05-kv76419113!Ircap@107.181.168.145 IP-real: 107.181.168.145 RN [xchat;failscripts] Port: 6667 <br>23:48:00 pell   server: S05-lm43617252!Ircap@223.112.53.2 IP-real: 223.112.53.2 RN [xscript;script Port: 6667 <br>23:48:02 pell   server: S05-yx14603099!Ircap@115.127.85.221 IP-real: 115.127.85.221 RN [debian;tuX Port: 6667 </div></blockquote>Thank you very much for your help and time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Wed Aug 30, 2023 5:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-08-30T08:19:46-04:00</updated>

		<published>2023-08-30T08:19:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112099#p112099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112099#p112099"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112099#p112099"><![CDATA[
I think the way you parse the string could be change using a regexp.<br>I don't know exactly how is the text you get, so I can't write it. Could you provide 2 complete connect string to let me help you ?<br><br>The alternative should be to change the way you set IP and realname:<div class="codebox"><p>Code: </p><pre><code>set outputchan "#debug"bind raw - NOTICE server:notices proc server:notices {from keyword text} {   global outputchan   if {[string match -nocase "*client connecting on port 66??*" $text]} {      set port [lindex [split $text] 7]      set nick [lindex [split $text] 10]      set IP [string range [lindex [split $text] 11] 1 end-1]      set hostmask [lindex [split $text] 12]      set realname [string range [join [lrange [split text] 13 18]] 1 end-1]      set connectport [lindex [split $text] 7]      putquick "PRIVMSG $outputchan 25server\002:\003 $nick \0021IP-real\002: $IP \0021RN\002 $hostmask $realname \0021Port:\002 $port \002"      return 0   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Aug 30, 2023 8:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PeLL]]></name></author>
		<updated>2023-08-29T19:44:31-04:00</updated>

		<published>2023-08-29T19:44:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112098#p112098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112098#p112098"/>
		<title type="html"><![CDATA[debug on connect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112098#p112098"><![CDATA[
Hello,<br>I want to ask for help on this simple script that I use for debug .<br>If possible remove parentheses ( ) and brackets [ ] .<br><div class="codebox"><p>Code: </p><pre><code>set outputchan "#debug"bind raw - NOTICE server:notices proc server:notices {from keyword text} {     global outputchan         if {[string match -nocase "*client connecting on port 66??*" $text]} { set port [lindex [split $text] 7]          set nick [lindex [split $text] 10]set IP [lindex [split $text] 11]           set hostmask [lindex [split $text] 12]    set real [lindex [split $text] 13]    set name [lindex [split $text] 14]    set long [lindex [split $text] 15]    set very [lindex [split $text] 16]    set loong [lindex [split $text] 17]    set final [lindex [split $text] 18]          set connectport [lindex [split $text] 7]          putquick "PRIVMSG $outputchan 25server\002:\003 $nick \0021IP-real\002: $IP \0021RN\002 $hostmask $real $name $long $very $loong $final \0021Port:\002 $port \002"           return 0        }  }</code></pre></div><br>Each connection connects from :<blockquote class="uncited"><div><br>dbug-server   server:  Ruler-!jmch@47.134.120.128 IP-real  (47.134.120.128) RN  [I3wjfCN8LzIwMjIvMTAvMDYvNjMzZTIwZDg4NWRkZl9sYXJnZS5qcGc=] Puerto:  6667<br>dbug-server   server:  Fujio!cdo@97.118.203.89 IP-real (97.118.203.89) RN  [I3wjfCN8LzIwMjIvMTAvMDYvNjMzZTIwZDg4NWRkZl9sYXJnZS5qcGc=] Puerto:  6667</div></blockquote>I would like to remove the parentheses from : ip-real and the brackets from realname<br><br>Thank you very much for your time .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11588">PeLL</a> — Tue Aug 29, 2023 7:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
