The script is basic request from metroid and "modified" by Tosser^^.
I have talked to both of them about this, mostly metroid.
I can post the part of the request script that Tosser^^ modified first and then say what my problem is.
Code: Select all
# Basic Request script
# Request is accepted
putquick "NOTICE $nickname :Your request is accepted. $bot will join $channel."
putquick "PRIVMSG $request::homechan :Request from $nickname for $channel was accepted. The channel has [llength [chanlist $channel]] users."
putbot "$bot :rjoin $channel $nickname *![getchanhost $nickname]"
channel remove $channel
}
}
proc request::version {} {
putlog "Basic Request script version: $request::version by $request::author was loaded successfully."
}
request::version
Here is the leaf script
Code: Select all
bind msg H| rjoin request:dojoin
proc request:dojoin { channel nickname hostname handle text } {
set channel [lindex [split $text] 0]
set nick [lindex [split $text] 1]
set host [lindex [split $text] 2]
if {![validuser [nick2hand $nick]]} {
channel add $channel
adduser $nick $host
chattr $nick |+n $channel
} else {
chattr [nick2hand $nick] |+n $channel
}
putserv "NOTICE $nick :Hello $nick. Im your new bot. Your added to my userlist as '[nick2hand $nick]' with the hostname '$host'. Enjoy!"
}
So, my problem is that the leaf script. It wont join the channel.
And in the partyline on the leaf bot i get this
Code: Select all
Tcl error [request:dojoin]: no such channel
And if i use putbot on the mainbot to call the leaf-bot, how should i bind the the stuff in the leaf script?
Best Regards
bootdisk
PS. Dont know if im just guessing now, but maybe im on the right way? :S