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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Sat Aug 12, 2023 9:56 am
Underdstood. A closing bracket you probably add in the ctcp proc messed up the script.
Good version:
Code: Select all
proc ctcp {from key text} {
global cversion
if {[string match *!*@* $from]} { return 0 }
if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -> port class nick ident host ip realname]} { return 0 }
if {[lsearch -regexp $nick] ne -1} { return }
set text [split $text]
set cversion([string tolower $nick]) 10
putserv "PRIVMSG $nick :\001VERSION\001"
# Timer to add
utimer 15 [list no:version:reply nick host]
return 0
}
PeLL
Voice
Posts: 28 Joined: Fri Mar 04, 2011 10:59 am
Location: spain
Contact:
Post
by PeLL » Sun Aug 13, 2023 7:13 am
ok it's fine, I've tried it and now it works fine.
Code: Select all
bind raw - notice check:version
bind ctcr - VERSION version:reply
proc check:version {from key text} {
global cversion
if {[string match *!*@* $from]} { return 0 } {
if {![regexp -nocase { CONNECT: Client connecting on port (\d+) \(class (\S+)\): ([^!]+)!([^@]+)@(\S+) \(([0-9a-f.:]+)\) \[(.*)\]} $text -> port class nick ident host ip realname]} { return 0 }
if {[lsearch -regexp $nick] ne -1} { return }
set text [split $text]
set cversion([string tolower $nick]) 1
putserv "PRIVMSG $nick :\001VERSION\001"
# Timer to add
utimer 5 [list no:version:reply $nick]
}
}
proc version:reply {nick uhost hand dest kw arg} {
global cversion
if {[info exists cversion([string tolower $nick])]} {
unset cversion([string tolower $nick])
}
}
proc no:version:reply {nick} {
global cversion
if {[info exists cversion([string tolower $nick])]} {
unset cversion([string tolower $nick])
putserv "gline $nick 5m :ta ta"
}
}
I have to say that with eggdrop in clone attack it does create a lot of lag , but ... I have mounted it in sbnc and now it has no lag .
Thank you very much CrazyCat , I have touched your code but I think it works .