mIRC Homepage
Posted By: LifeIsPain Making PART command not close windows - 27/04/03 02:17 AM
Using 6.03, I am trying to make mIRC ignore the command PART from a server. I want to actually leave the channel, but to leave the window open (with the log of what happened previously). The end result from a PART would be the same as if I were banned, and "Keep channels open" is checked in the IRC options. All of this would happen unless I had clicked the X in the corner, or typed a specialized command.

Now, I tried the following:
Code:
on *:part:#:if ( $me == $nick ) halt
to see if I could keep the window open, but it didn't, so it is possible it won't work for me, but it sure would be nice to leave the window open for log purposes
Posted By: KingTomato Re: Making PART command not close windows - 27/04/03 02:34 AM
Look in options..
[+]IRC
[ ] Leave Channels Open

near bottom, left column grin
Posted By: LifeIsPain Re: Making PART command not close windows - 27/04/03 02:42 AM
I have that checked, but it seems to only work when you are kicked, not when the server issues the PART command. I am trying to duplicate this feature for other purpose as well.
Posted By: KingTomato Re: Making PART command not close windows - 27/04/03 02:49 AM
try this..

Code:
on ^*:part:#: { if ( $me == $nick ) halt }
Posted By: LifeIsPain Re: Making PART command not close windows - 27/04/03 03:10 AM
Nope, no go, my debug log shows me as getting the PART command, but my window still closes frown
Code:
-> LifeIsPain.test PART #lifeispain :blah
<- :LIP!lip@192.168.0.1 PART #lifeispain :blah


[edit]And I should say that I can still get the on part script to work for other things, like echoing to the system window, so it just seems that mIRC is ignoring the halt on part[/edit]
Posted By: Online Re: Making PART command not close windows - 27/04/03 05:59 AM
Halting the on PART event apparently has no effect.
Posted By: KingTomato Re: Making PART command not close windows - 27/04/03 06:36 AM
Can you intercept it with a raw event? confused
Posted By: Online Re: Making PART command not close windows - 27/04/03 06:45 AM
No, because it isn't a numeric reply. My first attempt to halt that event was in order to prevent mIRC from sending its /part command whenever the user clicks on the [x] button, with no luck.
Posted By: KingTomato Re: Making PART command not close windows - 27/04/03 06:56 AM
you would think you could.. (Straight from help:)

Quote:

You can process non-numeric server messages by specifying the name of the event:

raw PROP:*mirc*:/echo 5 $1-


that to me would imply things such as PRIVMSG, *part*, amoung others.
Posted By: Nimue Re: Making PART command not close windows - 27/04/03 04:39 PM
Raw Events

The raw event allows you to process numeric server messages that are identified only by a number, and non-numeric server messages which mIRC doesn't recognize internally.

mIRC recognizes PART grin
Posted By: KingTomato Re: Making PART command not close windows - 27/04/03 09:18 PM
bah, showoff >:\ Well, we should be able to enterpret our own raws. Can u say Feature Suggestion? grin
Posted By: Nimue Re: Making PART command not close windows - 28/04/03 12:04 AM
I think yes to a Feature Suggextion, that there be a switch for /part to leave the window open. grin
© mIRC Discussion Forums