mIRC Home    About    Download    Register    News    Help

Print Thread
#30110 16/06/03 11:48 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Ok this may seem like a stupid question but is there a way other than using the quit message field in the options to send a quit message to the channel being able to integrate it into an "on quit" event? If so how... If not thats fine I am just curious is all...

#30111 16/06/03 12:53 PM
Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
alias q { quit $1- }

That`s it!

#30112 16/06/03 01:51 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
How about this....no matter how I quit, without using any aliases or the default quit message field something that will return a certain quit message...make sense? so whenever I logoff IRC this one quit message will always display....(remember without using the default quit message field or aliases)...

Now its time for me to head down to Dennys for breakfast....hehehehe

#30113 16/06/03 02:24 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
I am thinking that this isn't possible. I could be wrong but the way I see it, mIRC sees you trying to quit then it sends /quit Blah Blah Blah to the server. The quit reason can't respond to any raw message because by the time you receive it you are in your PJ's and on your knees saying your nightly prayers and therefore anything further that is sent when reacting to the last message received from the server is useless in this regard. As I said, I could be wrong as there may be some l337 way of scripting it but I can't think of anything that would work.

At the very least you would have to cover ON INPUT, covering both /quit, /exit and /disconnect as well as work out a way of making the same message send when using the ON/OFF button at top left and also the [X] at top right - a pain in the arse ay. shocked

#30114 16/06/03 03:03 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Could it be done? Yes. Is it worth it? Probably not. The only way I could think of doing that would be to use a dll that intercepts anything mIRC sends to the server, search for a QUIT command being sent, then changing this command to do what you wanted. It wouldn't be to easy to do though. You'd need to either use a library (such as MS Detours) or write your own code (very difficult) to override the send() function in WinSock. In addition you'd need to be familiar with how socket programming in C/C++ works and how the send() function works so that you can filter text. IMHO it's more work than it would really be worth.

#30115 16/06/03 03:32 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Thanks for all of the replies. As I stated I was just curious of the possibility and if it could be done as simple as possible. Thats all I wanted to know...Thanks again guys

#30116 16/06/03 04:56 PM
Joined: Feb 2003
Posts: 143
N
Vogon poet
Offline
Vogon poet
N
Joined: Feb 2003
Posts: 143
what about on EXIT? say you want to leave by closing mIRC, then you would use that command to do /quit. Or on DISCONNECT?

The on DISCONNECT event uses the same format as above and triggers when you quit or are disconnected from an IRC Server.



We don't just write the scripts, we put them to the test! (ScriptBusters)
#30117 16/06/03 05:00 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
you can't use ON EXIT to trigger a /quit because ON EXIT occurs after you are already disconnected.

#30118 16/06/03 06:11 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on load/unload you canw rite to mirc.ini [text] quit= and make mirc have to load that quit msg?


-KingTomato
#30119 17/06/03 01:37 PM
Joined: Jan 2003
Posts: 108
H
Vogon poet
Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
ya if you do that make sure you /saveini following it


Link Copied to Clipboard