mIRC Home    About    Download    Register    News    Help

Print Thread
#75445 16/03/04 12:59 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
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
#75446 16/03/04 02:50 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
/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!
#75447 16/03/04 03:14 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
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
#75448 16/03/04 03:28 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
#75449 16/03/04 03:37 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
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
#75450 16/03/04 04:40 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
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)

#75451 16/03/04 05:52 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
#75452 16/03/04 11:09 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.
#75453 17/03/04 10:06 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
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
#75454 17/03/04 10:24 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Oh yeah and definitely for /inc|/dec as well! smile

#75455 17/03/04 01:23 PM
Joined: Jan 2003
Posts: 428
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Jan 2003
Posts: 428
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 :-:
#75456 24/03/04 08:13 AM
Joined: Apr 2003
Posts: 342
M
Fjord artisan
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!

Link Copied to Clipboard