mIRC Homepage
Posted By: Maveric Command to turn on/off join/parts?? - 12/04/03 05:40 AM
Looked around and I can't see a command that can turn off join/parts in a channel window. Any idea how to do it if it can be done?
Posted By: Nimue Re: Command to turn on/off join/parts?? - 12/04/03 07:01 AM
Well, there's no /command to do that, but you can alter where|if they are shown.

To change the display globally, Options - IRC - click the "events.." button and you can edit where they are shown or hide them.

For a specific channel, right-click on the channels icon on the switchbar and choose "Events..." to do the same for only that channel.
Posted By: c0ldfusi0n Re: Command to turn on/off join/parts?? - 12/04/03 08:25 PM
In the remotes:
Code:
alias jp {
  if (%jp) { .echo -a * Join/Parts will now be shown in channels | unset %jp }
  else { echo -a * Join/Parts will no longer be shown in channels | set %jp 1 }
}
On ^*:JOIN:#:{
  if (%jp) { halt }
  else { echo 3 $chan *** $nick has joined $chan | halt }
}
On ^*:PART:#:{
  if (%jp) { halt }
  else { echo 3 $chan *** $nick has left $chan | halt }
} 


Syntax: /jp to turn on, and /jp to turn off.
Posted By: _D3m0n_ Re: Command to turn on/off join/parts?? - 12/04/03 08:36 PM
why u would code something that can be done already inside of mirc options is beyond me ....... ur not only making useless code but ur also not even taking acount for quits ..... why block half of the suggestion without showing how to block it all ........ id have to assume u havent found the OPTIONS menu in ur mirc or went thru it ...... try pressin CONTROL + o then clicking on the IRC tree list and then clicking the events button in the menu that it opens ,,,,,,,, in there u can hide all joins parts quits nickchanges ...... heck alot of things ..... without having to worry about writting a special script
Posted By: Jesper Re: Command to turn on/off join/parts?? - 12/04/03 09:43 PM
Just a quick note here:

Use either { return } or { haltdef } not { halt } smile
Posted By: MonoSex Re: Command to turn on/off join/parts?? - 12/04/03 10:35 PM
Why? halt and haltdef are the same thing in this case.
Posted By: Maveric Re: Command to turn on/off join/parts?? - 12/04/03 10:45 PM
Well I know all about the mIRC options. But you can't change those options in a remote script which is what I was hoping to do. I wanted to turn join/parts off/on at certain occations in a remote script.

BTW thanks to all who helped!
© mIRC Discussion Forums