mIRC Home    About    Download    Register    News    Help

Print Thread
#113232 02/03/05 08:02 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Is there a way to send a msg to the channel your parting ?
Just like on quiting irc.
I had hoped this would do the trick.

on !*^:part:#:{
/msg # bla bla bla
}. ( $+ $1- )
haltdef

But then again i'm new wink
Hope someone can help me....

#113233 02/03/05 08:15 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
The ! in your code means when it's not you that's parting. So.

Code:
On me:*:Part:#: {
  msg $chan blah blah
}

#113234 02/03/05 08:35 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
but would the msg out run the part?
attempted to msg the channel but got the cannot send to channel message.


Last edited by ricky_knuckles; 02/03/05 08:47 PM.

The Kodokan will move you, one way or another.
#113235 02/03/05 08:40 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
That won't work, the me is not a user level, but an event prefix.

What andy posted is fine.

Greets


Gone.
#113236 02/03/05 08:42 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean would it still send? The message still sends. smile

[20:41] * Test has joined #teens
[20:41] <Test> blah blah blah
[20:41] * Test has left #teens

#113237 02/03/05 08:46 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
not for me
it tries to send once im gone
so the end result is cannot send to channel


The Kodokan will move you, one way or another.
#113238 02/03/05 08:48 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Try this:

on me:^*:part:#: msg # message


Gone.
#113239 02/03/05 08:48 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
I get:

Quote:
#djfhsd No such nick/channel


but the message still shows up in the channel before I part.

Edit:

Fiber, that's what I tried. wink

Edit 2:

Code:
alias part {
  if ($left($2,1) == $(#,)) || ($chan) { msg $v1 &lt;message&gt; }
  !part $1-
}

Last edited by tidy_trax; 02/03/05 08:50 PM.

New username: hixxy
#113240 02/03/05 08:50 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
give me the same result


The Kodokan will move you, one way or another.
#113241 02/03/05 08:50 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Hmm, odd. Dieter how goes it for you?

#113242 02/03/05 08:58 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I know why it's not working.

I always tested with just closing the channel window with the mouse, and then the debug looks like this:

<- :notreg-x!~weee@kotnet-149.kulnet.kuleuven.be PART #cellka
-> slimey.uk.eu.dal.net PRIVMSG #cellka :this is a test
-> slimey.uk.eu.dal.net PART #cellka
<- :notreg-x!~weee@kotnet-149.kulnet.kuleuven.be PART #cellka

Which works fine.

However, if you issue a /part, you get this:

-> slimey.uk.eu.dal.net PART #cellka
<- :notreg-x!~weee@kotnet-149.kulnet.kuleuven.be PART #cellka
-> slimey.uk.eu.dal.net PRIVMSG #cellka :this is a test
<- :slimey.uk.eu.dal.net 404 notreg-x #cellka :Cannot send to channel

The fix is to use something along the lines what tidy pasted for manual /part

Greets


Gone.
#113243 03/03/05 02:22 AM
Joined: Jan 2005
Posts: 75
Z
Babel fish
Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
why don't you just do /part # arse
i thought that using that command sends it to the server, using mIRC's inbuilt event won't send anything to the server so you wouldn't be able to send a message.

#113244 03/03/05 02:28 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Eh, the script isn't for me hehe, personally I never use the /part command, I either quit mIRC entirely or right click the channel button and click "Close".

Greets


Gone.
#113245 03/03/05 02:32 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I just press shift and click the window from the switchbar. grin

#113246 03/03/05 02:34 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hehe,

I know that trick a long time, but I'm too lazy to move my left hand to the shift grin


Gone.
#113247 03/03/05 02:36 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Too lazy to move your left hand to the shift lol, now I've heard it all. wink The left shift don't work so I use my left hand for the right shift and right hand for the mouse lol.. mad


Link Copied to Clipboard