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

	<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>2021-12-13T13:00:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-13T13:00:23-04:00</updated>

		<published>2021-12-13T13:00:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110641#p110641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110641#p110641"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110641#p110641"><![CDATA[
tested it and works fine for me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 13, 2021 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-13T12:52:28-04:00</updated>

		<published>2021-12-13T12:52:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110640#p110640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110640#p110640"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110640#p110640"><![CDATA[
eggdrop is opered and has snomask c ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 13, 2021 12:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2021-12-12T17:00:57-04:00</updated>

		<published>2021-12-12T17:00:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110634#p110634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110634#p110634"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110634#p110634"><![CDATA[
try testing your code<br><div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE serv:connectnickproc serv:connectnick {from key text} {   if {[string match *!*@* $from]} { return }           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 }puthelp "PRIVMSG #test :$nick $ident $host $ip"  return 0} </code></pre></div>but it's not working....<div class="codebox"><p>Code: </p><pre><code>-irc.latinchat.org- *** CONNECT: Client connecting on port 5555 (class main): masskick!~irc@200.87.94.39 (200.87.94.39) [qween]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Dec 12, 2021 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T12:16:27-04:00</updated>

		<published>2021-12-12T12:16:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110610#p110610</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110610#p110610"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110610#p110610"><![CDATA[
each ircd has its own server notice for connections and disconnections <br>so u cant have 1 to work for both its either one  or the other<br><br> <br>this is for inspircd<br><div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE serv:connectnickproc serv:connectnick {from key text} {   if {[string match *!*@* $from]} { return }           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 }puthelp "PRIVMSG #test :$nick $ident $host $ip"  return 0} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2021-12-11T22:46:33-04:00</updated>

		<published>2021-12-11T22:46:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110606#p110606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110606#p110606"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110606#p110606"><![CDATA[
apparently the code only works in unrealircd but does not work in inspircd it is possible to use regex to work in both unreal and inspircd versions<br><div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE serv:connectnickproc serv:connectnick {from key text} {   if {[string match *!*@* $from] || ![string match -nocase "*Client connecting*" $text]} { return }   if {[scan [lindex [split $text :] 2] {%[^(](%[^@]@%[^)]) [%[^]]]%[^[][%[^]]} Nick ident host IP client ssl] == 6} {      puthelp "PRIVMSG #test :$Nick $ident $host $IP $client $ssl"   } else {      scan [lindex [split $text :] 2] {%[^(](%[^@]@%[^)]) [%[^]]} Nick ident host IP      puthelp "PRIVMSG #test :$Nick $ident $host $IP"   }   return 0}</code></pre></div>example variant regex (compatibility for both unreal and inspircd)<div class="codebox"><p>Code: </p><pre><code> {[regexp {CONNECT: Client connecting[.A-Za-z0-9 ]*: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9\\.]+)\\].*} $arg } </code></pre></div>but the variant does not work someone who can help please.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sat Dec 11, 2021 10:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-06-10T08:16:57-04:00</updated>

		<published>2020-06-10T08:16:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108533#p108533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108533#p108533"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108533#p108533"><![CDATA[
i tested again and it seems to work for ipv4 only for ipv6 it doesnt seem to get all the info<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Jun 10, 2020 8:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-06-09T19:50:15-04:00</updated>

		<published>2020-06-09T19:50:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108526#p108526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108526#p108526"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108526#p108526"><![CDATA[
i tried this in unreal5 and it didnt seem to work no more<br>these are the 2 example  server notices for ssl and non ssl<br><br>ssl<blockquote class="uncited"><div><br>*** Client connecting: RandomONE (<a href="mailto:uid304591@id-304591.tooting.irccloud.com">uid304591@id-304591.tooting.irccloud.com</a>) [2001:67c<img alt=":2f08:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/2f08.svg">4:0:0:4:a5cf] {clients} [secure ECDHE-RSA-AES256-GCM-SHA384]<br></div></blockquote>non ssl<blockquote class="uncited"><div>*** Client connecting: RandomONE (<a href="mailto:uid304591@id-304591.tooting.irccloud.com">uid304591@id-304591.tooting.irccloud.com</a>) [2001:67c<img alt=":2f08:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/2f08.svg">4:0:0:4:a5cf] {clients}<br></div></blockquote><br>using this:<br><div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE serv:connectnickproc serv:connectnick {from key text} {   if {[string match *!*@* $from] || ![string match -nocase "*Client connecting*" $text]} { return }   if {[scan [lindex [split $text :] 2] {%[^(](%[^@]@%[^)]) [%[^]]]%[^[][%[^]]} Nick ident host IP client ssl] == 6} {      puthelp "PRIVMSG #test :$Nick $ident $host $IP $client $ssl"   } else {      scan [lindex [split $text :] 2] {%[^(](%[^@]@%[^)]) [%[^]]} Nick ident host IP      puthelp "PRIVMSG #test :$Nick $ident $host $IP"   }   return 0}</code></pre></div><br>when using both ssl and  non ssl i get this  output:<br><br> <blockquote class="uncited"><div>RandomONE uid304591 id-304591.tooting.irccloud.com 2001</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Jun 09, 2020 7:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-03-03T22:53:33-04:00</updated>

		<published>2019-03-03T22:53:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107514#p107514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107514#p107514"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107514#p107514"><![CDATA[
the [lindex [split $text :] 1] part was off i changed to [lindex [split $text :] 2]<br><br>then it worked<br><br>excellent thank u very much apreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Mar 03, 2019 10:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-03-03T22:50:15-04:00</updated>

		<published>2019-03-03T22:50:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107513#p107513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107513#p107513"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107513#p107513"><![CDATA[
hm ok<br><br>all i get as output for both sll and non ssl is <br><blockquote class="uncited"><div>nick ident host ip</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Mar 03, 2019 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2019-03-03T22:37:59-04:00</updated>

		<published>2019-03-03T22:37:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107512#p107512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107512#p107512"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107512#p107512"><![CDATA[
<a href="https://ibb.co/sC47wts" class="postlink"><img src="https://i.ibb.co/nBypcRQ/Tclsh86.png" class="postimage" alt="Image"></a><br><br>it works on tclsh and should work with eggdrop too. <br>if you don't want to see {} around "clients" : [regsub -all {\{|\}} $client {}]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Sun Mar 03, 2019 10:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-03-03T22:01:46-04:00</updated>

		<published>2019-03-03T22:01:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107511#p107511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107511#p107511"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107511#p107511"><![CDATA[
hm same result i dont see any {} tho in the code since its used by {clients}<br>in:<br><blockquote class="uncited"><div> *** Client connecting: nick (ident@host) [ip] {clients} [secure ECDHE-RSA-AES256-SHA]</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Mar 03, 2019 10:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2019-03-03T21:57:32-04:00</updated>

		<published>2019-03-03T21:57:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107510#p107510</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107510#p107510"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107510#p107510"><![CDATA[
my bad! code edited.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Sun Mar 03, 2019 9:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-03-03T21:31:32-04:00</updated>

		<published>2019-03-03T21:31:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107509#p107509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107509#p107509"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107509#p107509"><![CDATA[
tried it and both ssl and non ssl users seem to output  first one without the client and ssl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Mar 03, 2019 9:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2019-03-03T21:52:40-04:00</updated>

		<published>2019-03-03T20:58:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107508#p107508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107508#p107508"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107508#p107508"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE serv:connectnickproc serv:connectnick {from key text} {if {[string match *!*@* $from] || ![string match -nocase "*Client connecting*" $text]} { return }if {[scan [lindex [split $text :] 1] {%[^(](%[^@]@%[^)]) [%[^]]]%[^[][%[^]]} Nick ident host IP client ssl] == 6} {puthelp "PRIVMSG #test :$Nick $ident $host $IP $client $ssl"} else {scan [lindex [split $text :] 2] {%[^(](%[^@]@%[^)]) [%[^]]} Nick ident host IPputhelp "PRIVMSG #test :$Nick $ident $host $IP"}return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Sun Mar 03, 2019 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2019-03-03T18:10:09-04:00</updated>

		<published>2019-03-03T18:10:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107506#p107506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107506#p107506"/>
		<title type="html"><![CDATA[get info  of user on connect with bind raw notice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107506#p107506"><![CDATA[
i forgot to ask about ssl  as well as some clients connect with ssl<br>and that changes the output i fiddled with it somewhat but couldnt get it to proper output<br><br> *** Client connecting: nick (ident@host) [ip] {clients} [secure ECDHE-RSA-AES256-SHA]<br><br>to output <br> <blockquote class="uncited"><div>  puthelp "PRIVMSG #test :$nick $ident $host $ip $client $ssl"<br></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Mar 03, 2019 6:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
