|
Joined: Oct 2006
Posts: 342
Fjord artisan
|
OP
Fjord artisan
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.
|
|
|
|
Joined: Mar 2005
Posts: 420
Fjord artisan
|
Fjord artisan
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!
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 842 |
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?
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 842 |
Eh? *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?
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
Joined: Oct 2006
Posts: 342
Fjord artisan
|
OP
Fjord artisan
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
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 842 |
I changed the code after I figured that out.
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?
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
#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
|
|
|
|
Joined: Oct 2006
Posts: 342
Fjord artisan
|
OP
Fjord artisan
Joined: Oct 2006
Posts: 342 |
hehehe ok im just asking.. :tongue:
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
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)
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Invision Support #Invision on irc.irchighway.net
|
|
|
|
|