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.

Help with Noversion1.05.tcl

Old posts that have not been replied to for several years.
Locked
R
Roc-A-Roo
Voice
Posts: 2
Joined: Sat Jul 16, 2005 3:52 pm

Help with Noversion1.05.tcl

Post by Roc-A-Roo »

I have this script working on a bot.. and it does versions fine. However, the spambot, I want to kick has a version reply sent as a notice, eg..

[8:30:28 pm] -Angelica22- VERSION Telnet 0.2a

From what I read in the script, it's supposed to see version replies via notice, but it doesn't appear to be kicking these spambots..

I can paste the script if needed here, if asked.
--
Roc-A-Roo
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

CTCP VERSION reply is via NOTICE indeed, but the spambot in question obviously replies with no CTCP in its notice, so your script doesn't catch it

I'd guess that's a broken spambot hehe
R
Roc-A-Roo
Voice
Posts: 2
Joined: Sat Jul 16, 2005 3:52 pm

Post by Roc-A-Roo »

This section of code would seem to indicate that the script does look for notices.. But it doesn't seem to see the spambots reply..

begin code block

proc notc:nv_notice {nick uhost hand text {dest ""}} {
global botnick nv_versions nv_globflags nv_chanflags
if {$dest == ""} { set dest $botnick }
if {([string tolower $nick] != [string tolower $botnick]) && ([string match "*version*" [lindex [string tolower $text] 0]])} {
foreach version $nv_versions {
if {[string match "*[string tolower $version]*" [lrange [string tolower $text] 1 end]]} {
nv_punish $nick $uhost
}
}
}
}

end code block
--
Roc-A-Roo
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

([string match "*version*" [lindex [string tolower $text] 0]])} {
should be

Code: Select all

([string match -nocase "version" [lindex [split [string tolower $text]] 0]])} {
Locked