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

	<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-07-12T22:43:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-07-12T22:43:27-04:00</updated>

		<published>2021-07-12T22:43:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110095#p110095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110095#p110095"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110095#p110095"><![CDATA[
CrazyCat can we make to send msg channel when the 10 connection dont have secure connetion  and not to save ip or $host when is send msg in channel to remove what info is save in list and when users have secure connection or host *.irccloud.com and *.mibbit.com to not send msg cozz cant read who user is connect via webirc<br><div class="codebox"><p>Code: </p><pre><code>-NOTICE- *** Client connecting: Test (uid479754@brockwell.irccloud.com) [192.184.10.118] [class: clients] [secure: TLSv1.2-ECDHE-ECDSA-AES256-GCM-SHA384] [reputation: 4666] </code></pre></div>to use regex like this and to show on channel and those 10 connect is match<br>so to know what is make bot trriger<br><div class="codebox"><p>Code: </p><pre><code>regexp {{:\ ([^ ]+)\s\(([^@]+)@([^\)])+\)\s\[([^\]]+)} \(class (\S+)\) \(secure TLSv(\d\.\d)-(\S+) \(reputation (\d+)\)} $text - nick ident host ip class secure reputationputhelp "PRIVMSG $::infochan : CONNECT: Nick: $nick - Iden: $ident - Host: $host - IP: $ip - Class: $class - Secure: $secure - Reputation: $reputation "</code></pre></div><div class="codebox"><p>Code: </p><pre><code>set mhrp(flood) 10:5set mhrp(nicks) {}set mhrp(on) 0set mhrp(exclude) {"*isweb*" "*secure*" "*.irccloud.com" "*.mibbit.com"}set commChan "#services"bind raw - NOTICE massconnectfloodproc massconnectflood {frm key text} {   if { $::mhrp(on) == 1 } { return }   if {[string match *!*@* $frm] || ![string match -nocase "*client connecting*" $text]} { return }   regexp {:\ ([^ ]+)\s\(([^@]+)@([^\)])+\)\s\[([^\]]+)} $text - nick ident host ip   foreach exclude $::mhrp(exclude) {      if {[string match -nocase $exclude $host] } { return }   }   set target [split $::mhrp(flood) :]   set max [lindex $target 0]   set seconds [lindex $target 1]   lappend ::mhrp(nicks) $nick   # we append $mhrp(nicks) with the new connection   utimer $seconds [list lreplace $::mhrp(nicks) [lsearch $::mhrp(nicks) $nick] [lsearch $::mhrp(nicks) $nick]]   # we will remove this entry in $seconds (5)   if {[llength $::mhrp(nicks)] &gt;= $max} {      # comparing size of mhrp(nicks) and target      puthelp "PRIVMSG $::commChan :!gline on"      set ::mhrp(on) 1      timer 10 [list massconnectunflood]   }}proc massconnectunflood {} {   putserv "PRIVMSG $::commChan :!gline off"   set ::mhrp(on) 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Mon Jul 12, 2021 10:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-07-12T10:35:55-04:00</updated>

		<published>2021-07-12T10:35:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110091#p110091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110091#p110091"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110091#p110091"><![CDATA[
Now is send msg on chan before 10 connection, what is wrong ?  like is  countinue the count from the first 10 connect test maybe ? need to stop remove the 10 first connect counts, so can start count again the new 10 connection not 9+1 or 3+7 connection ?<br><br>Maybe is save nick and remember and send msg again or maybe need to be new conection nick ? so the right way is to match 10 connect not the ip who make bot send the msg trigger command<br><div class="codebox"><p>Code: </p><pre><code>[17:32:28] &lt;@InfoServ&gt; USERS: Lethia!lethia@192.111.139.165 (32F07FFA.6BCFB625.C64C234B.IP) (Lethia) connected to the network[17:32:28] &lt;~X&gt; !gline on[17:32:29] &lt;@InfoServ&gt; USERS: Consuelo!consuelo@70.166.167.36 (69A377EE.4D4B93C6.9A1EF8E8.IP) (Consuelo) connected to the network[17:32:29] &lt;@InfoServ&gt; USERS: Yvette!yvette@174.75.211.222 (13CFE653.EE5CFFC7.B83C2445.IP) (Yvette) connected to the network[17:32:29] &lt;@InfoServ&gt; USERS: Margalit!margalit@184.181.217.204 (3CB0D412.B908AD8E.61D77C1C.IP) (Margalit) connected to the network[17:32:29] &lt;@InfoServ&gt; USERS: Jenifer!jenifer@72.221.164.34 (715394D6.28271C50.C0D4321D.IP) (Jenifer) connected to the network[17:32:30] &lt;@InfoServ&gt; USERS: Lynde!lynde@98.188.47.150 (BE059E5C.6EC7BCE1.4EDF4AE9.IP) (Lynde) connected to the network[17:32:30] &lt;@InfoServ&gt; USERS: Del!del@72.221.196.145 (5A95481C.1159A157.C0D4321D.IP) (Del) connected to the network[17:32:30] &lt;@InfoServ&gt; USERS: Sallyann!sallyann@91.219.237.21 (377F4C23.EF3571FD.E9DC59F1.IP) (Sallyann) connected to the network[17:32:30] &lt;@InfoServ&gt; USERS: Dorree!dorree@192.111.137.35 (E020523E.ACDA578F.C64C234B.IP) (Dorree) connected to the network[17:32:30] &lt;@InfoServ&gt; USERS: Isadora!isadora@98.185.94.76 (EE5C3F4.A9D4D4FB.3EDCEB4C.IP) (Isadora) connected to the network</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[17:56:00] &lt;~X&gt; !gline off[18:05:12] &lt;~X&gt; !gline on[18:05:12] &lt;@InfoServ&gt; USERS: Bebe!bebe@192.111.139.165 (32F07FFA.6BCFB625.C64C234B.IP) (Bebe) connected to the network [18:05:12] &lt;@InfoServ&gt; USERS: Leanna!leanna@70.166.167.36 (69A377EE.4D4B93C6.9A1EF8E8.IP) (Leanna) connected to the network [18:05:12] &lt;@InfoServ&gt; USERS: Dorothy!dorothy@72.221.164.34 (715394D6.28271C50.C0D4321D.IP) (Dorothy) connected to the network [18:05:12] &lt;@InfoServ&gt; USERS: Gillie!gillie@98.188.47.150 (BE059E5C.6EC7BCE1.4EDF4AE9.IP) (Gillie) connected to the network [18:05:13] &lt;@InfoServ&gt; USERS: Katherine!katherine@184.181.217.204 (3CB0D412.B908AD8E.61D77C1C.IP) (Katherine) connected to the network[18:05:13] &lt;@InfoServ&gt; USERS: Korie!korie@174.75.211.222 (13CFE653.EE5CFFC7.B83C2445.IP) (Korie) connected to the network [18:05:13] &lt;@InfoServ&gt; USERS: Alejandrina!alejandrin@72.221.196.145 (5A95481C.1159A157.C0D4321D.IP) (Alejandrina) connected to the network[18:05:14] &lt;@InfoServ&gt; USERS: Dorry!dorry@98.185.94.76 (EE5C3F4.A9D4D4FB.3EDCEB4C.IP) (Dorry) connected to the network [18:05:14] &lt;@InfoServ&gt; USERS: Elene!elene@192.111.137.35 (E020523E.ACDA578F.C64C234B.IP) (Elene) connected to the network [18:05:14] &lt;@InfoServ&gt; USERS: Eba!eba@ip72-212-63-101.ph.ph.cox.net (Test-DCB94153.ph.ph.cox.net) (Eba) [72.212.63.101] connected to the network [18:05:16] &lt;@InfoServ&gt; USERS: Zoe!zoe@ninox.hoo.st (Test-CB0AC1FF.hoo.st) (Zoe) [142.44.136.197] connected to the network </code></pre></div>here saving ip on connect is trigger the bot to send msg before new comes 10 connect how to fix this to not save ip or $host ?<br><div class="codebox"><p>Code: </p><pre><code>[18:11:53] &lt;@InfoServ&gt; USERS: Tomasine!tomasine@72.221.164.34 (715394D6.28271C50.C0D4321D.IP) (Tomasine) connected to the network [18:11:53] &lt;@InfoServ&gt; USERS: Hesther!hesther@70.166.167.36 (69A377EE.4D4B93C6.9A1EF8E8.IP) (Hesther) connected to the network [18:11:53] &lt;@InfoServ&gt; USERS: Elvina!elvina@174.75.211.222 (13CFE653.EE5CFFC7.B83C2445.IP) (Elvina) connected to the network [18:11:53] &lt;@InfoServ&gt; USERS: Ardra!ardra@98.188.47.150 (BE059E5C.6EC7BCE1.4EDF4AE9.IP) (Ardra) connected to the network [18:11:53] &lt;@InfoServ&gt; USERS: Leta!leta@184.181.217.204 (3CB0D412.B908AD8E.61D77C1C.IP) (Leta) connected to the network [18:11:54] &lt;@InfoServ&gt; USERS: Cris!cris@vps-3e661acc.vps.ovh.net (Test-AE99745C.vps.ovh.net) (Cris) [51.68.197.220] connected to the network [18:11:54] &lt;@InfoServ&gt; USERS: Clea!clea@72.221.196.145 (5A95481C.1159A157.C0D4321D.IP) (Clea) connected to the network [18:11:55] &lt;@InfoServ&gt; USERS: Leonelle!leonelle@ip72-212-63-101.ph.ph.cox.net (Test-DCB94153.ph.ph.cox.net) (Leonelle) [72.212.63.101] connected to the network [18:11:55] &lt;@InfoServ&gt; USERS: Calla!calla@tor-exit-ro.letztermensch.com (Test-40301E9A.letztermensch.com) (Calla) [185.247.224.14] connected to the network [18:11:55] &lt;@InfoServ&gt; USERS: Joelle!joelle@98.185.94.76 (EE5C3F4.A9D4D4FB.3EDCEB4C.IP) (Joelle) connected to the network [18:11:55] &lt;~X&gt; !gline on[18:21:00] &lt;~X&gt; !gline off[18:22:50] &lt;@InfoServ&gt; USERS: Deonne!deonne@192.111.139.165 (32F07FFA.6BCFB625.C64C234B.IP) (Deonne) connected to the network [18:22:50] &lt;@InfoServ&gt; USERS: Tiffy!tiffy@72.221.164.34 (715394D6.28271C50.C0D4321D.IP) (Tiffy) connected to the network [18:22:50] &lt;@InfoServ&gt; USERS: Linnie!linnie@70.166.167.36 (69A377EE.4D4B93C6.9A1EF8E8.IP) (Linnie) connected to the network [18:22:51] &lt;@InfoServ&gt; USERS: Lonni!lonni@184.181.217.204 (3CB0D412.B908AD8E.61D77C1C.IP) (Lonni) connected to the network [18:22:51] &lt;@InfoServ&gt; USERS: Elfrida!elfrida@174.75.211.222 (13CFE653.EE5CFFC7.B83C2445.IP) (Elfrida) connected to the network[18:22:51] &lt;~X&gt; !gline on</code></pre></div>this way Bot read ircd notice on connect<br><div class="codebox"><p>Code: </p><pre><code>[18:41:37] &lt;X&gt; [17:41:37] -NOTICE- *** Client connecting: Coralyn (coralyn@192.111.139.165) [192.111.139.165] [class: clients] [reputation: 1444] [18:41:37] &lt;X&gt; [17:41:37] -NOTICE- *** Client connecting: Ramona (ramona@70.166.167.36) [70.166.167.36] [class: clients] [reputation: 1777] [18:41:38] &lt;X&gt; [17:41:38] -NOTICE- *** Client connecting: Ardith (ardith@98.188.47.150) [98.188.47.150] [class: clients] [reputation: 813] [18:41:38] &lt;X&gt; [17:41:38] -NOTICE- *** Client connecting: Petra (petra@174.75.211.222) [174.75.211.222] [class: clients] [reputation: 947] [18:41:38] &lt;X&gt; [17:41:38] -NOTICE- *** Client connecting: Ivy (ivy@184.181.217.204) [184.181.217.204] [class: clients] [reputation: 1679] [18:41:38] &lt;X&gt; [17:41:38] -NOTICE- *** Client connecting: Celeste (celeste@72.221.164.34) [72.221.164.34] [class: clients] [reputation: 1463] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Mon Jul 12, 2021 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-07-12T10:12:04-04:00</updated>

		<published>2021-07-12T10:12:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110090#p110090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110090#p110090"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110090#p110090"><![CDATA[
Great thx again CrazyCat <br>I Will test and i will let u know, thx again for ur patiance and time u spend to help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Mon Jul 12, 2021 10:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-07-12T10:06:53-04:00</updated>

		<published>2021-07-12T10:06:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110089#p110089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110089#p110089"/>
		<title type="html"><![CDATA[adding exemp on massconect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110089#p110089"><![CDATA[
Did you try by yourself ? Looks like you have 99% of the elements.<br><div class="codebox"><p>Code: </p><pre><code>set mhrp(flood) 10:5set mhrp(nicks) {}set mhrp(on) 0set mhrp(exclude) {"*isweb*" "*secure*" "*.irccloud.com" "*.mibbit.com"}set commChan "#services"bind raw - NOTICE massconnectfloodproc massconnectflood {frm key text} {   if { $::mhrp(on) == 1 } { return }   if {[string match *!*@* $frm] || ![string match -nocase "*client connecting*" $text]} { return }   regexp {:\ ([^ ]+)\s\(([^@]+)@([^\)])+\)\s\[([^\]]+)} $text - nick ident host ip   foreach exclude $::mhrp(exclude) {      if {[string match -nocase $exclude $host] } { return }   }   set target [split $::mhrp(flood) :]   set max [lindex $target 0]   set seconds [lindex $target 1]   lappend ::mhrp(nicks) $nick   # we append $mhrp(nicks) with the new connection   utimer $seconds [list lreplace $::mhrp(nicks) [lsearch $::mhrp(nicks) $nick] [lsearch $::mhrp(nicks) $nick]]   # we will remove this entry in $seconds (5)   if {[llength $::mhrp(nicks)] &gt;= $max} {      # comparing size of mhrp(nicks) and target      puthelp "PRIVMSG $::commChan :!gline on"      set ::mhrp(on) 1      timer 10 [list massconnectunflood]   }}proc massconnectunflood {} {   putserv "PRIVMSG $::commChan :!gline off"   set ::mhrp(on) 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 12, 2021 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-07-12T09:21:57-04:00</updated>

		<published>2021-07-12T09:21:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110086#p110086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110086#p110086"/>
		<title type="html"><![CDATA[adding exemp on massconect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110086#p110086"><![CDATA[
Is possible to add exemp user to this script written by CrazyCat? Who are connected from webirc or *.irccloud.com and *.mibbit.com and secure connection and the bot dont send msg in channel when is match user client from this class, if i have netsplit or service down ?<br><br>as protected user on connect<br><div class="codebox"><p>Code: </p><pre><code>set protect(user) "isweb  secure  *.irccloud.com *.mibbit.com"foreach protect(user) $::protect(user)if {[string match -nocase $protect(user) $mhrp(nicks)]}</code></pre></div>Here the script<br><div class="codebox"><p>Code: </p><pre><code>set mhrp(flood) 10:5set mhrp(nicks) {}set mhrp(on) 0set commChan "#services"bind raw - NOTICE massconnectfloodproc massconnectflood {frm key text} {if { $::mhrp(on) == 1 } { return }if {[string match *!*@* $frm] || ![string match -nocase "*client connecting*" $text]} { return }regexp {:\ ([^ ]+)\s\(([^@]+)@([^\)])+\)\s\[([^\]]+)} $text - nick ident host ipset target [split $::mhrp(flood) :]set max [lindex $target 0]set seconds [lindex $target 1]lappend ::mhrp(nicks) $nick# we append $mhrp(nicks) with the new connectionutimer $seconds [list lreplace $::mhrp(nicks) [lsearch $::mhrp(nicks) $nick] [lsearch $::mhrp(nicks) $nick]]# we will remove this entry in $seconds (5)if {[llength $::mhrp(nicks)] &gt;= $max} {# comparing size of mhrp(nicks) and targetputhelp "PRIVMSG $::commChan :!gline on"set ::mhrp(on) 1timer 10 [list massconnectunflood]}}proc massconnectunflood {} {putserv "PRIVMSG $::commChan :!gline off"set ::mhrp(on) 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Mon Jul 12, 2021 9:21 am</p><hr />
]]></content>
	</entry>
	</feed>
