This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Using sentinel with another script to lock a channel

Old posts that have not been replied to for several years.
Locked
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Using sentinel with another script to lock a channel

Post by z_one »

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) ?

Code: Select all

sl_lock $chan "TEXT flood" ${botnet-nick}
z_one
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

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.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Well, I'll use another flood argument (thx for the hint) :wink:
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.

z_one
Locked