mIRC Homepage
Posted By: Angela On/off Switch - 10/06/17 01:13 AM
Is it possible to have On/off switch for an ON *:text:!request*:#: {
Posted By: KubosKube Re: On/off Switch - 10/06/17 01:34 AM
Indeed!(Kinda)
Code:
on *:TEXT:!request*:#: {
  if (%Switch == false) { halt }
  ;Insert the rest of your code here.
}

A simple "if" leading to a /halt will suffice. Now for the "Kinda" part. I don't know how to tell the "on Text" event to literally stop listening, I just know how to make it shut up.

The only thing you have to come up with is a method to make %Switch true/false.
Posted By: Brax Re: On/off Switch - 10/06/17 06:34 PM
Depending on the specific scenario. You can also take a look at Groups. Groups are designed specifically for enabling/disabling parts of scripts.

/help Groups
Posted By: Angela Re: On/off Switch - 13/06/17 08:23 AM
Thanks the Groups command works perfectly!
© mIRC Discussion Forums