egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Clone scan
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Mon Oct 08, 2007 12:47 pm    Post subject: Clone scan Reply with quote

Hello does anyone have any clone scan tcl.. i want to clone scan when someone join in specific channel and then i want to send message in other channel like that :


BOT: «« Koukouvaouvaou is a clone! - The nicks ( Koukouvaouvaou salAa ) are the same person! - Mask/host: *!~koukouvao@ppp079166115072.dsl.hol.gr »»

etc..
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Mon Oct 08, 2007 3:03 pm    Post subject: Reply with quote

Code:
set clonescan(channel) "#mychannel"
set clonescan(relaychan) "#staff"
set clonescan(strip) "0"; # set this to 1 to strip ~ from idents

bind join - * onjoin:clonescan

proc onjoin:clonescan {nick uhost hand chan} {
    global clonescan
    if {[lsearch -exact [string tolower $clonescan(channel)] [string tolower $chan]] == -1} { return }
    set list ""
    foreach user [chanlist $chan] {
        if {$user != "" && [string equal -nocase [expr {$clonescan(strip) == 1 ? "[string map {~ ""} $uhost]" : "$uhost"}] [expr {$clonescan(strip) == 1 ? "[string map {~ ""} [getchanhost $user $chan]]" : "[getchanhost $user $chan]"}]} {
            if {[lsearch -exact [string tolower $list] [string tolower $user]] == -1} {
                lappend list "$user"
            }
        }
    }
    if {[llength $list] > 0} {
        putserv "PRIVMSG $clonescan(relaychan) :«« $nick is a clone! - The nicks ( [join $list " "] ) are the same person! - Mask/Host: [expr {$clonescan(strip) == 1 ? "[string map {~ ""} $uhost]" : "$uhost"}] »»"
    }
}


Not tested!
_________________
r0t3n @ #r0t3n @ Quakenet


Last edited by r0t3n on Wed Oct 10, 2007 2:11 pm; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Mon Oct 08, 2007 4:26 pm    Post subject: Reply with quote

thnx man i am gonna test it in a while..
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Mon Oct 08, 2007 5:24 pm    Post subject: Reply with quote

Error:


[17:22] can't read "list": no such variable
while executing
"llength $list"
(file "scripts/clone.tcl" line 1)
(file "eggdrop.conf" line 1)

when i make start
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Tue Oct 09, 2007 12:26 pm    Post subject: Reply with quote

I edited the script above, give it a try, it should work.
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Oct 09, 2007 12:36 pm    Post subject: Reply with quote

same error
Code:

[19:34:41] <BOTNICK> [11:34] Tcl error in file 'eggdrop.conf':
[19:34:41] <BOTNICK> [11:34] can't read "list": no such variable
[19:34:41] <BOTNICK>     while executing
[19:34:41] <BOTNICK> "llength $list"
[19:34:41] <BOTNICK>     (file "scripts/clone.tcl" line 1)
[19:34:41] <BOTNICK>     (file "gatherbot.txt" line 1)
[19:34:41] <BOTNICK> [11:34] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
-
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Wed Oct 10, 2007 2:12 pm    Post subject: Reply with quote

I added a extra } in one of the expr's by mistake, the edited version should work now...
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Wed Oct 10, 2007 2:48 pm    Post subject: Reply with quote

this error :/
Code:

[13:46] Tcl error [onjoin:clonescan]: missing close-bracket
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Fri Oct 12, 2007 5:54 am    Post subject: Reply with quote

anyone? :/
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Oct 12, 2007 12:28 pm    Post subject: Reply with quote

check this script (click here)
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Fri Oct 12, 2007 1:43 pm    Post subject: Reply with quote

Thnx but i dont like it.. i need previus script but doesnt working i have this error..
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sun Oct 14, 2007 5:59 am    Post subject: Reply with quote

anyone?
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sun Oct 14, 2007 3:07 pm    Post subject: Reply with quote

That's because Tosser _still_ doesn't get how TCL works.

Code:
set clonescan(channel) [list #mychannel1 #mychannel2 #mychannel3]; # put the channel name(s) here in lowercase.
set clonescan(relaychan) "#staff"
set clonescan(strip) 0; # set this to 1 to strip ~ from idents

bind join - * onjoin:clonescan

proc onjoin:clonescan {nick uhost hand chan} {
    global clonescan
    if {[lsearch -exact $clonescan(channel) [string tolower $chan]]} {
   
        if {$clonescan(strip)} {
            set uhost [string trimleft $uhost "~"]
        }
        set list [list]
       
        foreach user [chanlist $chan] {
       
            if {$clonescan(strip)} {
                set host [string trimleft [getchanhost $user $chan] "~"];
            } else {
                set host [getchanhost $user $chan];
            }
           
            if {[string equal -nocase $uhost $host]} {
                lappend list $user;
            }
        }
        if {[llength $list] > 1} {
            putserv "PRIVMSG $clonescan(relaychan) :«« $nick is a clone! - The nicks ( [join $list ", "] ) are the same person! - Mask/Host: $uhost »»"
        }
    }
}


Last edited by metroid on Mon Oct 15, 2007 3:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sun Oct 14, 2007 9:20 pm    Post subject: Reply with quote

i have this error..

[20:20] Tcl error [onjoin:clonescan]: can't read "strip": no such variable

:/
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Mon Oct 15, 2007 12:28 pm    Post subject: Reply with quote

change all
Code:
$clonescan($strip)
to
Code:
$clonescan(strip)

_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber