mIRC Home    About    Download    Register    News    Help

Print Thread
#164243 09/11/06 06:01 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
on ^*:PART:#:{
if ($nick == $me) part $chan %msg
}

how can i do this without saying
you're not on #channel after i parted and
when i /hop
after i hopped it will auto part the chan.

#164244 09/11/06 06:29 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
You're getting that message because on your code, you're trying to part "again" after you just parted the channel. What are you really trying to do?


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#164245 09/11/06 06:32 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Code:
alias part { !part $1 $iif($2-,$v1,%msg) }


You could always try something like that. *shrugs*

Last edited by Jigsy; 09/11/06 06:42 PM.

What do you do at the end of the world? Are you busy? Will you save us?
#164246 09/11/06 06:35 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just curious as to why you're using $v1 in that, Jigsy. $v1 is useful, but here? $1 is a character less and $2- is the same number of characters, and I don't think it would change the speed of the script any to use $v1 instead.


Invision Support
#Invision on irc.irchighway.net
#164247 09/11/06 06:36 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Eh? blush

*edit*

Wait, I see your point. Ok, forget what I said. :X

Last edited by Jigsy; 09/11/06 06:39 PM.

What do you do at the end of the world? Are you busy? Will you save us?
#164248 09/11/06 06:38 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
alias part { !part $iif($1,$v1,$active) $iif($2-,$v1,%msg) }

vs.

alias part { !part $iif($1,$1,$active) $iif($2-,$2-,%msg) }

Just wondering the reason for choosing $v1. Maybe it's just habit? Not a bad habit, of course.


Invision Support
#Invision on irc.irchighway.net
#164249 09/11/06 11:10 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
#channel No such channel

always get that when i leave the channel.
Q:
1: any way not to display that?
2. when i type /hop the
on *:PART:#:{ if ($nick == $me) part $chan %msg }
! or wpn't work so that i can hop freely.

alias part { !part $iif($1,$1,$active) $iif($2-,$2-,%script) }

don't work

#164250 09/11/06 11:11 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I changed the code after I figured that out.

Code:
alias part { !part $1 $iif($2-,$v1,%msg) }


*points upwards too*


What do you do at the end of the world? Are you busy? Will you save us?
#164251 10/11/06 03:25 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Quote:
#channel No such channel

always get that when i leave the channel.
Q:
1: any way not to display that?


Did you read what xDaeMoN told you? He explained why you are getting that error.


Invision Support
#Invision on irc.irchighway.net
#164252 10/11/06 03:38 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
hehehe ok im just asking.. :tongue:

#164253 10/11/06 06:27 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/part # text
/part # $null
/part # $false
/part # 0

alias part { !part $iif($1,$v1,$active) $iif($2-,$v1,%msg) }
(1 of 4 correct)

vs.

alias part { !part $iif($1,$1,$active) $iif($2-,$2-,%msg) }
(1 of 4 correct)

vs

alias part { !part $iif($1,$1,$active) $iif($len($2-),$2-,%msg) }
(4 of 4 correct)


** different subject, isnt there a options field you can set for part messages? and you can put a %var into it and it gets used? ** (might have mixedthis with something else)

#164254 10/11/06 04:35 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
No, just for quits.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard