Code: Select all
.chanset #blah need-key join #blah thekey
Code: Select all
tag when posting logs, code
anixion wrote:when u invite a bot, how do u get it to accept it?
Code: Select all
bind raw - INVITE join:invite
proc join:invite {from key arg} {
channel add [lindex [split $arg :] 1]
return 0
}
Code: Select all
tag when posting logs, code
I assumed that the channel is not added to the bot, otherwise ofcourse the bot will automatically join on invite if the channel is valid.demond wrote:Sir_Fz, that's not necessary if the channel has already been added, at least on hybrid, and I suspect on other major ircds too (bahamut is hybrid clone anyway)
in ircd, there is a boolean function can_join(), and it always returns true when the client has been invited, regardless of the reason it couldn't join: +i, +k, +l or banned; therefore, the bot will automatically (be able to) join upon invitation
Well that's how we load scripts right?anixion wrote:should i just add that code to invite.tcl and add it to my egg conf and scripts dir?
demond wrote:use .+chan command and then set need-key setting to:naturally, if the key changes, you'll need either to do .chanset again, have someone invite the bot, or better yet, have another bot on channel and run botnetop.tcl on all bots (for automatic key exchange when needed)Code: Select all
.chanset #blah need-key join #blah thekey
A little more active participation on your part might be wise, such as reading all the useful links found on the homepage, or by using the search function. Your question has already been answered numberous times, including in the FAQ.eltech wrote:once thats changed... whats next?
make it +k?
a little more help would be appreciated..
great welcome to the n00b ... thanks.. i'll read upYooHoo wrote:A little more active participation on your part might be wise, such as reading all the useful links found on the homepage, or by using the search function. Your question has already been answered numberous times, including in the FAQ.eltech wrote:once thats changed... whats next?
make it +k?
a little more help would be appreciated..