mIRC Home    About    Download    Register    News    Help

Print Thread
#124923 12/07/05 08:19 PM
Joined: Jul 2005
Posts: 1
W
worf Offline OP
Mostly harmless
OP Offline
Mostly harmless
W
Joined: Jul 2005
Posts: 1
Hi,

just got a little question here.

Is it possible to use different quit messages depending on the network I'm disconnecting from?

I've looked at all the options and googled a lot but didn't find an answer.

I hope someone can help me here. smile Thanks in advance.

-
worf

#124924 12/07/05 11:31 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If you use the /quit command, then yes it is possible, since you can specify a message after /quit

Read /help /quit for more information.

If you're looking for a specific message based on the network, that'll come across when you quit mIRC, irrelevant as to how, then I'm sorry, but I don't think that's possible...although, I'm more than willing to stand corrected.

#124925 14/07/05 06:53 PM
Joined: Nov 2003
Posts: 25
N
Ameglian cow
Offline
Ameglian cow
N
Joined: Nov 2003
Posts: 25
Options, IRC, messages:

in the "Quit Message" box, put:

Code:
$networkquit($network)


Then, in your remotes (alt-r):

Code:
alias networkquit {
  var %quitmsg = %quitmsg.default
  if ($eval($+(%,quitmsg.,$1),2) != $null && $1 != $null) {
    %quitmsg = $eval($+(%,quitmsg.,$1),2)
  }
  return %quitmsg
}


Then just set your quit msgs:

/set %quitmsg.somenetwork this is a quit msg for somenetwork
/set %quitmsg.anothernetwork custom quit msg

And the default quit msg (for networks you haven't set a custom msg for and for networks that don't supply the network name):

/set %quitmsg.default the default quit msg

To find out the network name, type in your editbox:

//echo -a $network


I hope this helps.


Link Copied to Clipboard