|
Joined: Nov 2007
Posts: 117
Vogon poet
|
OP
Vogon poet
Joined: Nov 2007
Posts: 117 |
on 1:input:*: { if ($left($1-,1) != /) { say 4,0$+| $+ $1- | halt } }
i want erase the space between ,any idea , thnx so much
|
|
|
|
Joined: Jun 2007
Posts: 933
Hoopy frood
|
Hoopy frood
Joined: Jun 2007
Posts: 933 |
on 1:INPUT:*:if ($left($1,1) != /) && (!$ctrlenter) { say 4,0 $+ $1- $+ | halt } Like that?
|
|
|
|
Joined: Jan 2007
Posts: 1,156
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Looks like he was getting a space before the | he was inserting because he didn't put a space between the color code and the $+ as shown in the first reply.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Nov 2007
Posts: 117
Vogon poet
|
OP
Vogon poet
Joined: Nov 2007
Posts: 117 |
<Daniel> Avatar esta buena tu peli this space between > and avatar i want take it
thnx
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
If you mean you want a space between < yournick > then you can do this: on *:INPUT:#: {
if ($left($1,1) != /) && (!$ctrlenter) {
echo -t # $+(<,$chr(32),$nick(#,$me).pnick,$chr(32),>) 4,0 $+ $1-
.msg # $1- | halt
}
}
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
No, he wants:
<nick> hello
to be:
<nick>hello
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
Ok I suppose that's an easy fix: on *:INPUT:#: {
if ($left($1,1) != /) && (!$ctrlenter) {
echo -t # $+(<,$nick(#,$me).pnick,>,$(4,0),$1-)
.msg # $1- | halt
}
}
|
|
|
|
Joined: Jan 2007
Posts: 1,156
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
Tomao you cannot put the font code inside $+() because it thinks the , is a delimiting token. Either replace the comma with $chr(44) or do it the other way. echo -i7t # $+(<,$chr(160),$nick(#,$me).pnick,$chr(160),>) $+ 4,0 $+ $1-
.msg # $1-
haltdef
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
My bad. This is it: on *:INPUT:#: {
if ($left($1,1) != /) && (!$ctrlenter) {
echo -t # $+(<,$nick(#,$me).pnick,>) $+ 4,0 $+ $1-
.msg # $1- | halt
}
}
|
|
|
|
Joined: Jul 2007
Posts: 1,129
Hoopy frood
|
Hoopy frood
Joined: Jul 2007
Posts: 1,129 |
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
Joined: Oct 2003
Posts: 3,918 |
Seriously? If you want a space, just don't use $+.
- argv[0] on EFnet #mIRC - "Life is a pointer to an integer without a cast"
|
|
|
|
Joined: Jan 2007
Posts: 1,156
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
Because he had $chr(32) and in my experience $chr(32) doesn't give you a blank space in an echo.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
$chr(32) *does* give a blank space... but only 1 in a row. $chr(160) lets you do multiple spaces in a row, but not all fonts show it as a space, so it's not necessarily a good method to you if you're distributing the script.
argv0, the OP wasn't trying to add spaces, but to remove one.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Jan 2007
Posts: 1,156
Hoopy frood
|
Hoopy frood
Joined: Jan 2007
Posts: 1,156 |
nah I got boxes from $chr(32). You know the ones you get when your font doesn't support a character. Maybe it works better now. I noticed Vista handles fonts a lot better than windows ever has.
|
|
|
|
Joined: Nov 2009
Posts: 117
Vogon poet
|
Vogon poet
Joined: Nov 2009
Posts: 117 |
How can any font not support $chr(32) ? If you need more than one space you can like cheat by adding double bolds inbetween. Usually when I need a space as example: $replace($duration(600),min,$chr(32) minute)) Note: No need for a $+ between $chr and minute.
|
|
|
|
Joined: Jul 2008
Posts: 236
Fjord artisan
|
Fjord artisan
Joined: Jul 2008
Posts: 236 |
boxes from $chr(32)? highly unlikely. that's ascii for space... maybe you're emulating mIRC on a box that uses ebcid? in that case, expect everything to be weird
|
|
|
|
|