mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 36
L
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 36
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

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Look in options..
[+]IRC
[ ] Leave Channels Open

near bottom, left column grin


-KingTomato
Joined: Apr 2003
Posts: 36
L
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 36
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.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
try this..

Code:
on ^*:part:#: { if ( $me == $nick ) halt }


-KingTomato
Joined: Apr 2003
Posts: 36
L
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 36
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]

Last edited by LifeIsPain; 27/04/03 03:15 AM.
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Halting the on PART event apparently has no effect.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Can you intercept it with a raw event? confused


-KingTomato
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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.


-KingTomato
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
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

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
bah, showoff >:\ Well, we should be able to enterpret our own raws. Can u say Feature Suggestion? grin


-KingTomato
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
I think yes to a Feature Suggextion, that there be a switch for /part to leave the window open. grin


Link Copied to Clipboard