Hello there im new in this forum (and in tcl-scripting)....
I have found a protectionscript it works fine, but i cant add a user...
Down here i paste the adduser-function....
This is the errorcode in the partyline "Tcl error [secure:script:adduser]: couldn't create error file for command: no such file or directory"
Script:
# {{{ add new user
proc secure:script:adduser { nickname hostname handle channel arguments } {
global botnick secure lastbind
if {![channel get $channel "protection"]} {
putserv "PRIVMSG $channel :You have to enable the protection script first."
return 0
}
set user [lindex [split $arguments] 0]
set alternativ [lindex [split $arguments] 1]
if {($user == "")} {
putserv "PRIVMSG $channel :You forgot the nickname parameter. Type: $lastbind \037nickname\037 ?\037handle\037? (must be on $channel)"
} elseif {![onchan $user $channel]} {
putserv "PRIVMSG $channel :Couldn't find $user in $channel."
} elseif {[validuser [nick2hand $user]]} {
putserv "PRIVMSG $channel :$user is already known as [nick2hand $user]."
} elseif {[validuser $user] && ($alternativ == "")} {
putserv "PRIVMSG $channel :Handle '$user' is already known. Try again with a alternativ Handle."
} elseif {[string equal -nocase $user "$botnick"] || [string equal -nocase $user "$nickname"]} {
return 0
} else {
set userhost [getchanhost $user $channel]
if {[string match "*users.quakenet.org" $userhost]} {
set userhost *!*@[lindex [split $userhost "@"] 1]
} else {
if {($secure(dynamic,ip,check) == "1")} {
set result [dynamic:check:ip [dynamic:get:ip [lindex [split $userhost @] 1]]]
if {($result == "-1")} {
putserv "PRIVMSG $channel :Couldn't resolve $users's hostname \[[lindex [split $userhost @] 1]\] for dynamic IP check."
return 0
} elseif {($result == "1")} {
putserv "PRIVMSG $channel :$user is currently using a dynamic IP as host. He can change his hostname by setting up usermode +x (mIRC: /mode $user +x (must be authed with Q))."
return 0
}
}
set userhost [maskhost $userhost]
}
if {($alternativ != "") && [validuser $alternativ]} {
putserv "PRIVMSG $channel :Alternativ Handle '$alternativ' is already known. Try again with a new alternativ Handle."
} elseif {($alternativ != "") && ![validuser $alternativ]} {
adduser $alternativ $userhost; set added $alternativ
} else {
adduser $user $userhost; set added $user
}
putserv "PRIVMSG $channel :$user has been added with the Handle '$added'"
putserv "NOTICE $user :You have been added to my userlist by $nickname. Your known host will as of now be: $userhost."
}
}
# }}}
if {[string match "*users.quakenet.org" $userhost]} {
}
you could maybe just delete all that ip check crap because it never worked for me . Just delete the ip check stuff. Or even better, set $secure(dynamic,ip,check) to 0 to disable the ip check. But, still, i have not got the error that you have. Maybe if you set $secure(dynamic,ip,check) to "0" to disable the ip check, it could fix it.
ohh okey i have the protection from http://www.dev.alex.ip-am.de/ ... hmm i just have started with TCL so i dunno exacly where i should "set" that
But i think you mean set 0 where the 1 is...: