mIRC Homepage
Posted By: Kev_Uk random quit message - 31/01/05 01:24 AM
For some reason the quit message in options/irc/messages will work for $read quitmsg.txt but when i try to put the text file in a directory called Text where i would prefer text files to go in won't work as $read Text\quitmsg.txt
Posted By: EvilErnieADI Re: random quit message - 31/01/05 01:31 AM
$read($mircdir $+ text\quitmsg.txt)

see if that works.

or perhaps you are just mistyping something. paste code so we can see?
Posted By: Kev_Uk Re: random quit message - 31/01/05 01:32 AM
Nope still nothing blush(
Posted By: EvilErnieADI Re: random quit message - 31/01/05 01:50 AM
Paste the line you have in the quit msg bar so we can see. And also what version of mirc you're using. And confirm that quitmsg.txt is spelled thus, and in the text directory.
Posted By: Kev_Uk Re: random quit message - 31/01/05 01:52 AM
$read($mircdir $+ text\quitmsg.txt)

That's what you gave me few mins ago

Also i'm using 6.16 and the text file is the same spellings, as i said it seems to work if it's in the mirc directory alone, thinking maybe it's a mirc bug or another script confliction somewhere but if it was a conflict i doubt it would work either way.
Posted By: FiberOPtics Re: random quit message - 31/01/05 01:57 AM
It works perfect here.

In alt+o -> irc -> messages -> quit message, i put: $read(text\quitmsg.txt)

Then in my mIRC folder, I made a folder named text, and put a file named quitmsg.txt in it, with a couple of lines.

Then upon testing, it gave each time a random line from the file after issuing a /quit.

Greets
Posted By: Kev_Uk Re: random quit message - 31/01/05 01:59 AM
I guess i have problem somewhere it's not working frown
Posted By: EvilErnieADI Re: random quit message - 31/01/05 02:11 AM
works for me also. both in quit msg settings and directly typed.
try checking any scripts you have that relate to on QUIT....

also, monitor your quit msg by opening a second instance of mirc and when you quit type /quit

are there any error messages in status window? and also what DOES show up as your quit message? we will get to the bottom of this... crazy
Posted By: Kev_Uk Re: random quit message - 31/01/05 02:13 AM
i have a few on quit in certain scripts, but if i removed them im sure the script would stop working, when the nickname does quit it shows my nickname.

i guess this is something i can't fix, i guess i have to put up and have it placed in the mirc directory only frown
Posted By: FiberOPtics Re: random quit message - 31/01/05 02:15 AM
You can modify the on QUIT event that you have in your script, so that it would send the random message.
Posted By: EvilErnieADI Re: random quit message - 31/01/05 02:17 AM
well... if you remove the on QUIT events, your script should not stop working. Not unless you added some kind of anti ripping scripts that would make everything stop working if any files are changed.

try putting ; marks in front of all the lines in your on QUIT events and see what happens next time you quit.

Example: put the ; marks in front of all the lines of on quit like this!

;on 1:QUIT:{
;echo w00t
;}
Posted By: Kev_Uk Re: random quit message - 31/01/05 02:26 AM
Yea i've been during that few minutes ago and still no joy, doesn't matter going to plan b putting txt file in mirc dir works then, thanks for your help
Posted By: Iori Re: random quit message - 31/01/05 08:07 AM
Have you by any chance aliased your /quit command?
  • //echo -a $isalias(quit) - $isalias(quit).fname
Posted By: Splatted Re: random quit message - 31/01/05 09:41 AM
Quote:
$read($mircdir $+ text\quitmsg.txt)

That's what you gave me few mins ago



this should be sufficient if your text directory is in your mirc directory.

$read(text\quitmsg.txt)
Posted By: Kev_Uk Re: random quit message - 31/01/05 04:41 PM
When i did //echo -a $isalias(quit) - $isalias(quit).fname

i get a $false -

And no haven't touched my quit command in aliases
Posted By: clutz1572 Re: random quit message - 31/01/05 05:01 PM
have you checked for any error msgs in your status window? it's a dumb question i know but, sometimes it can be overlooked. if there is, that will give a good indication of what the problem is... and also post it if there is a error msg on this..

edit
oops, i didn't see EvilErnieADI's commants on that... (sorry)
Posted By: lerpicus Re: random quit message - 01/02/05 11:29 AM
Kev, type //echo $mircdir and let us know what it says.
If it returns a path with spaces in it, it could be the prob
© mIRC Discussion Forums