the syntax +/-bmotion is for example to this script and maybe used for other script too.
the use of this is just to msg the bot to do the chanset thing for the script to work on every channel..and no need to go to partyline or telnet the bot..
been bugging me for a couple of days but i can't get it to work.
Okay, I see two issues right off the bat. First one is that you have named your proc the name of an already existing proc. I have done this several times myself. "Chanset" is already a dcc command, so that could very well be messing things up for you. Avoid using pre-existing command names for your procs.
lindex returns a single list item, not a list. Don't use join here.
Whenever you call return, the proc will immediately exit without running the following code. Thus, if the channel is +inactive, it will be set -inactive, but the rest of the code will not be executed. If the channel is already -inactive, it will print the "bmotion activated" message and then exit, not executing the channel set command further down.
"+/-setting" is not a valid channel setting, enter the actual setting you are trying to alter (perhaps +bmotion ?).
if {[channel get $chan "active"]} {
channel set $chan -inactive
return 0
}
This will still cause the script to end before the channel is set +bmotion in case it's set +inactive. It is set -inactive however. I'm not sure if this is the behaviour you intended?