mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2008
Posts: 16
K
Kisuke Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Oct 2008
Posts: 16
I know the mIRC ini cannot be written to while mIRC is open, but I'm wondering if there's any way to change the quit message after mIRC has been started.

I've tried using ON QUIT and ON EXIT to produce the quit message I need, and I've tried setting the quit message to something like $quitmsg with an alias of the same name that returns the right message, but it seems like no matter what I do all I get when the bot quits is "Client Quit".

It's driving me bonkers. Please tell me there's a way to make this work.

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
/quit message

will show the message you type.

You can call a message from a alias, but im not shure what you want to do.

You can grab your own quit message with

on ^*:quit: {

And you can edit it with your own message.
Code:
on ^*:quit: {
  if ($nick == $me) {
   haltdef
   echo -a My quit message!
 }
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2008
Posts: 16
K
Kisuke Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Oct 2008
Posts: 16
Basically I have a bot and when it quits I want it to send to the channel "this bot was written by Kiisuke -- version blah blah blah". No matter what I do though, when I hit the [x] to close the bot, it just sends the message "Client Quit"

I did a @debug and dumped the contents of the debug out to a text file upon quitting and it shows that it's sending the correct QUIT message to the IRC server. I'm just not sure why mIRC is not displaying it when the bot quits.

@debug showed this:

-> availo.esper.net PRIVMSG #TestingChannel :testing again
-> availo.esper.net QUIT :This bot was written by Kiisuke, version 1.0


Yet on mIRC's side..

[13:26] * MyTestBot Quit (Client Quit)


This even occurs if I do /quit with the bot with a custom message. It seems like no matter what I do, it only says "client quit"

Last edited by Kisuke; 12/07/12 06:37 PM.
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Stay connected for more than one minute or two and it should work


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2008
Posts: 16
K
Kisuke Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Oct 2008
Posts: 16
Welp. I feel like an idiot for not knowing that fact. It works now, thanks.


Link Copied to Clipboard