mIRC Home    About    Download    Register    News    Help

Print Thread
#82255 07/05/04 02:21 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Wasn't sure whether to post this in bug reports or feature suggestions.
Example:
/clipboard -1
Will not work because mIRC thinks -1 is a switch, this is annoying. :tongue:
Add checking to make sure it is a switch before trying to use it as one. smile


New username: hixxy
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The current method of switch checking means that your code is future-proof as far as switches go. What if mIRC allowed /clipboard -1 and then in 6 months a new version comes out which has a -1 switch - suddenly your script doesn't work and you haven't got a clue why.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
He should add something to get around it then, eg: /clipboard --1

edit: or allow $eval() or -!1 to ignore the fact that it's a switch.

Last edited by tidy_trax; 07/05/04 03:12 PM.

New username: hixxy
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
There already is, and you almost guessed it: /clipboard - -1


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
ah, thanks wink


New username: hixxy

Link Copied to Clipboard