this script when applied to your bots scripts will lock them until you type the unlock command
after you put the script i wrote below into your remotes before all of your scrripts then you need to put this after every On :text:blahblah:#:{ command
E.g
on :Text:op:#:{
if (%lock == on) {
.notice $nick Commands Are Currently Locked Contact A Channel Operator To Get Them Unlocked. | halt }
mode $chan +o $2-
}
on the snipplet below replace clock and culock with your choice of the lock and unlock commands
clock = the lock trigger
and
culock = the unlock trigger
replace them with whatever you want
feel free to edit both the .msg $chan messages
also the clock and culock commands will only be usable if you are a
channel operator
on *:load:{
echo 12 -a You Have Just Loaded DragonFlare's Lock Script
echo 12 -a A DragonFlare's Network Production
echo -a 14,1 ?????????????????????. My Server Is /server irc.oxsh.net:6665
}
on @*:text:*:#:{
if ($nick isop #) {
if ($strip($1) == !Clock) {
set %lock on
.msg $chan Commands are now locked.Please contact a channel operator to have them unlocked.
}
elseif ($strip($1) == !CUlock) {
unset %lock
.msg $chan Commands are now Unlocked..
}
}
}
well maybe add this to an on load event
echo 12 -a You Have Just Loaded DragonFlare\'s Lock Script
echo 12 -a A DragonFlare\'s Network Production
echo -a 14,1 ?????????????????????. My Server Is /server irc.oxsh.net:6665
like
on *:load:{
echo 12 -a You Have Just Loaded DragonFlare\'s Lock Script
echo 12 -a A DragonFlare\'s Network Production
echo -a 14,1 ?????????????????????. My Server Is /server irc.oxsh.net:6665
}
cuz other wize it serves no point to have it there =/ and why post a script that dont work test ur stuff before you post.
on @*:text:*:#:{
if ($nick isop #) {
if ($strip($1) == !Clock) {
set %lock on
.msg $chan Commands are now locked.Please contact a channel operator to have them unlocked.
}
elseif ($strip($1) == !CUlock) {
unset %lock
.msg $chan Commands are now Unlocked..
}
}
}
chanserv has a lock down facility for servers using it. it is called mlock (mode lock)
must be owner i think (gone senile here with work today ^^) to use /cs mlock (mode required) i cant remember offhand if you need mlock on/off also before use.
maybe look into that and how it works DragonFlare. have a good old read up and then design your snippet around it so that way you know it all works correctly.
i re-itterate. this mlock is for servers with chanserv (and not been disabled also by IRCops) unreal32 server is one such server i know the mlock works with.