mIRC Home    About    Download    Register    News    Help

Print Thread
#139450 14/01/06 08:02 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Imo it would be convenient if there were a means to declare a variable that will unset itself when mIRC closes, thus not having to code an on *:exit: to unset all vars there.

-u is currently not an option, because you can't know in advance how long it will take before someone will close his session, and it's ridiculous to specify something like set -u9999999, and it still wouldn't be fullproof, not to mention less efficient for mIRC, since a timer has to run internally, whereas with the new option, internally it would simply set some flag in memory that it should unset that var upon closing of mIRC.

To anyone that is not Khaled: I am not asking for workarounds.

#139451 15/01/06 02:03 AM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
Sounds useful to me.

Maybe similar switch could allow a variable to be unset when its associated server window was closed.

-genius_at_work

#139452 15/01/06 04:44 AM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
For now you can use this...

Code:
Just kidding!


Sounds useful smile

#139453 17/01/06 12:57 AM
Joined: Nov 2004
Posts: 822
J
Hoopy frood
Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
Something like 'set -e %var' ... I like that idea smile

#139454 22/01/06 04:09 AM
Joined: Apr 2004
Posts: 217
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 217
I aswell concur.


Link Copied to Clipboard