mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2007
Posts: 60
M
maconga Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Apr 2007
Posts: 60
If I try to close out of mIRC, i get a little warning, I am wondering if there is some sort of script that I can use to give me a warning when I try to leave a channel itself.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Not really, since a script won't actually stop you from leaving the channel.

You could do something like
Code:
on ^me:*:part:#:{
  echo -a You parted $chan on $network at $time
  haltdef
}


The warning that I think you are referring to is built into mIRC to ensure that you realize that closing the status window will disconnect you from that network.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yeah, about your only option would be to always part a channel using a custom alias instead of /part or Shift-click on the channel tab, or right click the channel tab and hitting close, etc.

Code:
alias P {
  if ($active != $chan) { return }
  if ($?!="Do you want to part this channel?" == $true) { part $active }
}


Then, you always use /p to part the channel (or name the alias something better that P). Though it really isn't going to help that much... if you type the alias, you already know you're trying to part the channel.

Last edited by Riamus2; 27/02/10 01:56 AM.

Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Actually I'm sure you already know that you can override the default /part command with a custom alias:
Quote:
alias part {

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Just make sure that the code gets altered so that the part command in the alias actually calls the part command and not the alias.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yeah, but I prefer not editing the internal aliases.


Invision Support
#Invision on irc.irchighway.net
Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
better to use $input -u


WorldDMT

Link Copied to Clipboard