This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

check mass connect

Help for those learning Tcl or writing their own scripts.
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

You took my script before I edit a small bug.

Find:

Code: Select all

if {[llength $::mhrp(nicks)] >= $target} { 
Replace with:

Code: Select all

if {[llength $::mhrp(nicks)] >= $max} { 
G
Gulio
Halfop
Posts: 74
Joined: Sun Nov 01, 2020 11:53 am

hi

Post by Gulio »

i change this

Code: Select all

   if {[llength $::mhrp(nicks)] >= $target} {
in

Code: Select all

   if {[llength $::mhrp(nicks)] >= $max} {
and is work great now is send msg !gline on after matxch 10 nick connection

the result is what i expected right

Code: Select all


[15:42:31] * ChanServ sets mode: +qo X X
[15:42:39] <@InfoServ> USERS: Bevvy!bevvy@192.111.139.165 (32F07FFA.6BCFB625.C64C234B.IP) (Bevvy) connected to the network 
[15:42:39] <@InfoServ> USERS: Veriee!veriee@72.221.164.34 (715394D6.28271C50.C0D4321D.IP) (Veriee) connected to the network 
[15:42:39] <@InfoServ> USERS: Diahann!diahann@70.166.167.36 (69A377EE.4D4B93C6.9A1EF8E8.IP) (Diahann) connected to the network 
[15:42:40] <@InfoServ> USERS: Lorraine!lorraine@174.75.211.222 (13CFE653.EE5CFFC7.B83C2445.IP) (Lorraine) connected to the network
[15:42:40] <@InfoServ> USERS: Dulsea!dulsea@184.181.217.204 (3CB0D412.B908AD8E.61D77C1C.IP) (Dulsea) connected to the network 
[15:42:40] <@InfoServ> USERS: Libbie!libbie@98.188.47.150 (BE059E5C.6EC7BCE1.4EDF4AE9.IP) (Libbie) connected to the network 
[15:42:40] <@InfoServ> USERS: Sheeree!sheeree@ninox.hoo.st (Test-CB0AC1FF.hoo.st) (Sheeree) [142.44.136.197] connected to the network
[15:42:40] <@InfoServ> USERS: Marsha!marsha@72.221.196.145 (5A95481C.1159A157.C0D4321D.IP) (Marsha) connected to the network 
[15:42:41] <@InfoServ> USERS: Dee!dee@192.111.137.35 (E020523E.ACDA578F.C64C234B.IP) (Dee) connected to the network
[15:42:41] <@InfoServ> USERS: Marinna!marinna@ip72-212-63-101.ph.ph.cox.net (Test-DCB94153.ph.ph.cox.net) (Marinna) [72.212.63.101] connected to the network
[15:42:41] <~X> !gline on

CrazyCat thnx a lot for ur help and ur time i apreciate it
G
Gulio
Halfop
Posts: 74
Joined: Sun Nov 01, 2020 11:53 am

hi

Post by Gulio »

CrazyCat 1 question i have
Is possible to add exemp user who are connected from webirc or *.irccloud.com and *.mibbit.com and secure connection to not send msg in channel if i have netsplit or service down ?

as protected user on connect

Code: Select all

if match nicks from "isweb" || "secure" || "*.irccloud.com" || "*.mibbit.com"
i send this request on Request threat

CrazyCat thx a lot for ur time and ur patience to help me
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

It's possible to add exclusions if the info is in the connection string (as in hostmask) with a list of hosts and a simple check.

It's also possible to disable the process if services are down, but:
- it will slow the process or make it random: you'll have to check if the services are up when the bot connects, and check (dis)connections of servers to know if your services are alway up
- disabling a security when services are down is weird: it means that loosing a security (services) will make you loose all your securities ? imho, you'd better enforce the security given with your eggdrop when services are down.

Last point: can't you ask the complete features when starting a thread ? It's simplest to develop a complete script than create a small part and add functionnalities.

Actually, the script I gave answers to your initial ask, so the job is done.
G
Gulio
Halfop
Posts: 74
Joined: Sun Nov 01, 2020 11:53 am

Hello

Post by Gulio »

Yes thx a lot for ur time and patience to help i make new request for this add exemp on Request threats
P
PeLL
Voice
Posts: 28
Joined: Fri Mar 04, 2011 10:59 am
Location: spain
Contact:

Post by PeLL »

Hello everyone, I just read this post and I want to ask if it is possible to modify something...
Would it be possible to add glined by reading realname ?
clones have 3 - 5 characters in the realname.
That can act when connecting the clone to the realname:
realname: "???" "????" <- read characters.

Thank you very much who can support.
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Too dangerous.
A lot of pple can have 3-5 characters in their realname.

And the realname is not present in the connecting notice
P
PeLL
Voice
Posts: 28
Joined: Fri Mar 04, 2011 10:59 am
Location: spain
Contact:

Post by PeLL »

In inspircd it does read real name on connect .
And the clones have that realname 3, 4, 5 random characters in realname.
It is to hunt those clones in connecting to the fast server.

inspircd :

Code: Select all

if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -> port class nick ident host ip realname]} { return }
I understand that when connecting I can read those variables.
Thank you very much for answering CrazyCat
Post Reply