I think he means when they are in the same channel the bot is in a user can have the bot join any other channel via "!join #mychan".rosc2112 wrote:I'll give you the benefit of the doubt and assume you spammed this request because the forum was not responding..
But... How do you expect the bot to receive a command in channels that its NOT in?
Code: Select all
bind pub - !join join:channel
proc join:channel {nick uhost hand chan arg} {
set channel [lindex [string tolower $arg] 0]
channel add $channel
}
Does that perm add it to a room? and how would they make it leave the room?Alchera wrote:I think he means when they are in the same channel the bot is in a user can have the bot join any other channel via "!join #mychan".rosc2112 wrote:I'll give you the benefit of the doubt and assume you spammed this request because the forum was not responding..
But... How do you expect the bot to receive a command in channels that its NOT in?
Code: Select all
bind pub - !join join:channel proc join:channel {nick uhost hand chan arg} { set channel [lindex [string tolower $arg] 0] channel add $channel }
How naughty of you to use lindex on a string :pAlchera wrote:I think he means when they are in the same channel the bot is in a user can have the bot join any other channel via "!join #mychan".rosc2112 wrote:I'll give you the benefit of the doubt and assume you spammed this request because the forum was not responding..
But... How do you expect the bot to receive a command in channels that its NOT in?
Code: Select all
bind pub - !join join:channel proc join:channel {nick uhost hand chan arg} { set channel [lindex [string tolower $arg] 0] channel add $channel }
* Alchera Woopsmetroid wrote:How naughty of you to use lindex on a string :p
Code: Select all
bind pub - !join join:channel
bind pub - !part part:channel
proc join:channel {nick uhost hand chan arg} {
set channel [string tolower $arg]
channel add $channel
}
proc part:channel {nick uhost hand chan arg} {
set channel [string tolower $arg]
channel remove $channel
}