mIRC Homepage
For instinces if i put !noticeoff it will disable the *JOIN:#: command. Can anyone tell me how to do this... also if you know how to enable it as well. all help is appriciated.
If you want to disable an event ...

Now Ive never had to do this so I dont know if mirc has a way built-in, but you can put code in the 1st loaded script.

Code:
on ^*:join:#:halt
on ^*:text:*:#:halt
on ^*:notice:*:#:halt

to make sure the script is the 1st one loaded you can use..
on *:start:{
  if ($nopath($script(1)) != scriptname.mrc) load -rs1 scriptname.mrc
}


If you want to disable a specific script event, you could put the event inside of a group.

Code:

#OnJoinNotice on

on !*:JOIN:#: {
  .notice $nick Welcome to my channel $nick $+ !
}

#OnJoinNotice end

on *:TEXT:*:#: {
  if ($1 == !noticeoff) .disable #OnJoinNotice
  elseif ($1 == !noticeon) .enable #OnJoinNotice
  .notice $nick ON JOIN Notice is $group(#OnJoinNotice)
}



/help /disable
/help /enable
/help $group

thanks for helping but.... i copied the code directly into the remote tab and it didnt work frown

I misread your topic anyway, try the other.
still no luck frown

The only way can think of turning off remote events remotely while still being able to remotely turn them back on is....

Code:

ctcp *:!eventsoff:?:events off | notice $nick Remote events are off.

ctcp *:!eventson:?:events on | notice $nick Remote events are on.



/ctcp <nick> !eventson
/ctcp <nick> !eventsoff
Hey yeah, see learn something new. Ive never needed to do this but ...


Originally Posted By: "mirc help file"
General Commands



/ctcps [on|off]

This switches processing of ctcp events on/off.



/events [on|off]

This switches processing of named events on/off.



/dlevel <level>

This changes the default user level to the specified level.



/raw [on|off]

This switches processing of numeric events on/off.



/remote [on|off]

This switches processing of all scripts on/off.

i need like actually commands for and to disable only one command
i need like actually commands for and to disable only one command
If none of this info has helped you,


What exactly do you need disabled?
to disable to JOIN script then being able to re-enable it with !noticeon Its for Justin.tv
Use the group option suggested earlier
example:
Code:
on *:text:!notice*:#justin.tv:{
  if !$2 {
    .msg $nick Join notice for $chan is $group(#join)
  }
  elseif $2 == on && $group(#join) == off {
    .enable #join
  }
  elseif $2 == off && $group(#join) == on {
    .disable #join
  }
}
#join on
on !*:join:#justin.tv:{
  .describe $chan welcomes $nick to $chan
}
#join end

© mIRC Discussion Forums