mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2009
Posts: 20
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
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.

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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
}


Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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


Joined: Sep 2009
Posts: 20
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
thanks for helping but.... i copied the code directly into the remote tab and it didnt work frown

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

I misread your topic anyway, try the other.

Joined: Sep 2009
Posts: 20
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
still no luck frown

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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.


Joined: Sep 2009
Posts: 20
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
i need like actually commands for and to disable only one command

Joined: Sep 2009
Posts: 20
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
i need like actually commands for and to disable only one command

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
If none of this info has helped you,


What exactly do you need disabled?

Joined: Sep 2009
Posts: 20
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2009
Posts: 20
to disable to JOIN script then being able to re-enable it with !noticeon Its for Justin.tv

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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



Link Copied to Clipboard