Code: Select all
set password ""
bind raw - NOTICE notice_bnc
proc notice_bnc {from keyword arg} {
global password
if {[lindex [split [set arg [string tolower $arg]]] 0] == "auth" ||
[string tolower $from] == "my.server.here"} {
set bnc_notice [join [lrange [split $arg] 1 end]]
if {[string match "*type /pass password*" $bnc_notice]} {
putserv "PASS $password"
}
}
}
Code: Select all
set nickpass "password"
bind raw - 512 identify:nick
proc identify:nick {from key arg} {
putserv "PASS $nickpass"
}
Code: Select all
putlog "$from :: $key :: $arg"
Code: Select all
[13:57] chat.wiredreality.net :: 512 :: ChatBot :Authorization required to use Registered Nickname ChatBot
[13:57] Tcl error [identify:nick]: can't read "nickpass": no such variable
set errorInfo
Currently: can't read "nickpass": no such variable
Currently: while executing
Currently: "putserv "PASS $nickpass""
Currently: (procedure "identify:nick" line 2)
Currently: invoked from within
Currently: "identify:nick $_raw1 $_raw2 $_raw3"
Code: Select all
global nickpass