Is it possible to Halt a command while running? - 23/08/14 05:22 AM
Is it possible to Halt a command while running to stop the rest of the commands from being used?
PASTED FROM SCRIPT:
If this is possible please help.
Also it doesn't seem to work when I take out "if ($nick isop #) { msg $chan /me Thank you moderator for entering command }"'s msg
AKA it doesn't work.
I want it to say this if an OP types the command:
timer twitter turned on!
timer twitter turned off!
What I want said if a non-op types command:
Sorry, you must be a mod to use this command.
Eventually I will be implementing this into a lot more of my commands if this works!
PASTED FROM SCRIPT:
Code:
on *:TEXT:!twitter*:#sho94: { if ($nick isop #) { msg $chan /me Thank you moderator for entering command } else { msg $chan /me Sorry you must be a mod to use this command } <WHERE I WANT COMMAND TO BE HALTED> if ($2 == on) { timerMessage 0 1200 msg $chan /me Follow Sho on twitter! http://adf.ly/nseve } if ($2 == on) { msg $chan /me Timer Twitter turned on! } if ($2 == off) { timerMessage off } if ($2 == off) { msg $chan /me Timer Twitter turned off! } }
If this is possible please help.
Also it doesn't seem to work when I take out "if ($nick isop #) { msg $chan /me Thank you moderator for entering command }"'s msg
AKA it doesn't work.
I want it to say this if an OP types the command:
timer twitter turned on!
timer twitter turned off!
What I want said if a non-op types command:
Sorry, you must be a mod to use this command.
Eventually I will be implementing this into a lot more of my commands if this works!