04-23-2018, 03:48 +0200
AuthorPost
Web52|Esben10-20-2005, 12:02   | Keepout Script Error
(Guest)
Error

Tcl error [::keepout::joinchan]: can't read "arguments": no such variable


                                                                                                                              
1
2
3
4
5
6
7
proc keepout::joinchan {nickname hostname handle channel} {
    if {[channel get $channel keepout] && ![matchattr $handle $keepout::flags $channel] && [botisop $channel]} {
        putquick "MODE $channel +b [ban $hostname]"
        set kickmsg [lindex $keepout::kickmsg [rand [llength $keepout::kickmsg]]]
        putquick "KICK $channel $nickname :[string map "%nick $nickname %host $hostname %chan $channel" $kickmsg]"
    }
}


code
http://www.nomorepasting.com/paste.php?pasteID=50838
Esben  10-20-2005, 12:03   | Re: Keepout Script Error
Member since 09/2005
1 Post
Location: Aarhus , Denmark
forget to login :(
GM  10-22-2005, 18:42  
(Moderator)

Avatar

Member since 09/2004
2 Posts
You are editing someone elses script... and then making errors into it...
That's not very nice of you.
Or if the script doesn't work, then contact the author of it.
Mettwurst  10-22-2005, 18:48   Homepage
(Moderator)

Avatar

Member since 04/2004
13 Posts
Location: Stuttgart/Germany
                                                                                                                              
1
2
3
4
5
6
7
proc keepout::ban {host} {
    if {![string match *[b]users.quakenet[/b]* $host]} {
        return "[string map "~ *[b]" [/b]*!$host]"
    } else {
        return "*!*@[lindex [split $arguments] 0]"
    }
}


that is your problem.
var "arguments" does not exist

should be
                                                                                                                              
1
2
3
4
5
6
7
proc keepout::ban {host} {
    if {![string match "*!*@users.quakenet.org" $host]} {
        return "*![string map "~ ?" $host]"
    } else {
        return "*!*@[lindex [split $host] 0]"
    }
}

Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 156.6 msec, CPU time: 64.9 msec, 37 Database queries in 116.5 msec | 3.7 kB (19.3 kB) | Timezone: +0200