mIRC Home    About    Download    Register    News    Help

Print Thread
/var #75445
16/03/04 12:59 PM
16/03/04 12:59 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline OP
Hoopy frood
tidy_trax  Offline OP
Hoopy frood
T

Joined: Nov 2003
Posts: 2,327
make it so /var works the way it does now (with the =) and the way /set works (without the =)


New username: hixxy
Re: /var #75446
16/03/04 02:50 PM
16/03/04 02:50 PM
Joined: Feb 2003
Posts: 2,600
Raccoon Offline
Hoopy frood
Raccoon  Offline
Hoopy frood

Joined: Feb 2003
Posts: 2,600
/var typically does work without needing a '=', but it is not recommended.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: /var #75447
16/03/04 03:14 PM
16/03/04 03:14 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline OP
Hoopy frood
tidy_trax  Offline OP
Hoopy frood
T

Joined: Nov 2003
Posts: 2,327
that's what i mean, it's incorrect syntax, but most of the time you can get away with it.
make it correct syntax wink


New username: hixxy
Re: /var #75448
16/03/04 03:28 PM
16/03/04 03:28 PM
Joined: Feb 2003
Posts: 2,600
Raccoon Offline
Hoopy frood
Raccoon  Offline
Hoopy frood

Joined: Feb 2003
Posts: 2,600
To make it correct syntex, Khaled would have to make use with '=' incorrect, otherwise data that starts with '=' would become corrupt.

/var %var = is the equals sign.
echo -a %var
= is the equals sign.

I'm of the opinion Khaled should do the exact opposite. Make it so you can optionally use '=' in /set, and the '=' wont be placed into the variable. Then /set %var = data would become the accepted standard, and people will use it as such.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: /var #75449
16/03/04 03:37 PM
16/03/04 03:37 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline OP
Hoopy frood
tidy_trax  Offline OP
Hoopy frood
T

Joined: Nov 2003
Posts: 2,327
i'm sure he could do the equivilent of:
alias var {
if $2 != = { varstuff $2- }
elseif $2 == = { varstuff $3- }
}


New username: hixxy
Re: /var #75450
16/03/04 04:40 PM
16/03/04 04:40 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
I would like to be able to /set %a one,%b two (or /set %a = one,%b = two, not fussed about that smile)

Re: /var #75451
16/03/04 05:52 PM
16/03/04 05:52 PM
Joined: Feb 2003
Posts: 2,600
Raccoon Offline
Hoopy frood
Raccoon  Offline
Hoopy frood

Joined: Feb 2003
Posts: 2,600
ditto. and definitely /inc %x 1, %y 1, %z 1 grin


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: /var #75452
16/03/04 11:09 PM
16/03/04 11:09 PM
Joined: Dec 2002
Posts: 2,962
Norwich, UK
S
starbucks_mafia Offline
Hoopy frood
starbucks_mafia  Offline
Hoopy frood
S

Joined: Dec 2002
Posts: 2,962
Norwich, UK
Quote:
I'm of the opinion Khaled should do the exact opposite. Make it so you can optionally use '=' in /set

- But then any scripts using set with = as the start of the value will become incorrect. Same goes for commas if a /set %var1 value1, %var2 value2 syntax was implemented (although it would be great if inc/dec had that ability).

IMO all that really needs to be done is make the /var entry in the helpfile clearly state something like 'use = you lazy bastards'. Problem solved.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: /var #75453
17/03/04 10:06 AM
17/03/04 10:06 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline OP
Hoopy frood
tidy_trax  Offline OP
Hoopy frood
T

Joined: Nov 2003
Posts: 2,327
it's not that i'm lazy, it's that i've never used it before and it takes some getting used too wink


New username: hixxy
Re: /var #75454
17/03/04 10:24 AM
17/03/04 10:24 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

Joined: Aug 2003
Posts: 1,831
Oh yeah and definitely for /inc|/dec as well! smile

Re: /var #75455
17/03/04 01:23 PM
17/03/04 01:23 PM
Joined: Jan 2003
Posts: 428
Cyberia
P
PastMaster Offline
Fjord artisan
PastMaster  Offline
Fjord artisan
P

Joined: Jan 2003
Posts: 428
Cyberia
Quote:
IMO all that really needs to be done is make the /var entry in the helpfile clearly state something like 'use = you lazy bastards'. Problem solved


Absolutely agree grin

PM


IRCnet & DALnet @#travelersinn
:-: IRC for fun and relaxation :-:
Re: /var #75456
24/03/04 08:13 AM
24/03/04 08:13 AM
Joined: Apr 2003
Posts: 342
M
MeStinkBAD Offline
Fjord artisan
MeStinkBAD  Offline
Fjord artisan
M

Joined: Apr 2003
Posts: 342
Quote:
I'm of the opinion Khaled should do the exact opposite. Make it so you can optionally use '=' in /set, and the '=' wont be placed into the variable. Then /set %var = data would become the accepted standard, and people will use it as such.


I agree, set should use = too. It would be nice if you could declare global "set" variables like you can with var. People who use VAR without an = are fools. I suggest you define all you local variables at the top of alias/event/ect.

mIRC is so full of inconsistancies it's really sad.


Beware of MeStinkBAD! He knows more than he actually does!