I wrote a script and I need to make it use Sentinel's locking mechanism in order to keep things centralized.
Is it enough to use the following line from my script to lock a channel (if netbots is loaded of course) ?
After skimming the code, there's nothing that stands out as a reason against doing this, except that you don't want to use a flood type argument used by sentinel otherwise you won't be able to tell which script triggered it. In any case, I can't guarantee the behaviour will be what you're expecting.
Well, I'll use another flood argument (thx for the hint)
As for the fact that you cannot give any garantuee, I understand that, and I'll do it at my own risk.
Anyway, as you said, there's nothing that seems to forbid doing that in the code. It's just that I need to centralize the locking process.