Jump to content

Switch


JOhnson

Recommended Posts

:lmaojump: hi iv been using this as a switch in some of my codes and iv found since I upgrade mirc it shows like this all the time now link (0) and not like this link on / link off ... err0r gave me one ages ago but I cant find it in my files :shock: as always thank you for any replies :D

 

menu channel {
  -
  .link  ( $+ %link $+ )
  ..On:{ .enable #link | set %link On | echo $active 8,4-=[ link On ]=- }
  ..Off:{ .disable #link  | set %link Off | echo $active 8,4-=[ link Off ]=- }
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...