Joins channels when in #X by typing .join #channel
Parts channels when in #X by typing .part #channel
Thanks

Code: Select all
bind dcc n part part_chan
proc part_chan {hand idx text} {
set text [split $text]
if {([botonchan $text]) && ([validchan $text])} {
channel set $text +inactive
putcmdlog "Bot setting channel +inactive and leaving $text by $hand 's command."
} else {
putdcc $idx "I'm not ON channel $text"
return
}
}
bind dcc n join join_chan
proc join_chan {hand idx text} {
set text [split $text]
if {(![botonchan $text]) && ([validchan $text])} {
channel set $text -inactive
putcmdlog "Bot setting channel -inactive and rejoining $text by $hand 's command."
} else {
putdcc $idx "That's not a valid channel..."
return
}
}