mIRC Home    About    Download    Register    News    Help

Print Thread
#185712 13/09/07 03:11 AM
Joined: Jan 2004
Posts: 509
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
A case where I:

Code:
        /echo $chan $var($eval(% $+ thevariable $+ $chan $+ *),%i)
        /unset $var($eval(% $+ thevariable $+ $chan $+ *),%i)


Doesn't unset.

The /echo did:

%thevariable#chan

Then I manually typed /unset %thevariable#chan and that unsets.. But not by script.

6.3.

-Neal.

LostShadow #185715 13/09/07 03:36 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Script try
Code:
$eval($var($eval(% $+ thevariable $+ $chan $+ *),%i))

Command line, try
Code:
//unset $var($eval(% $+ thevariable $+ $chan $+ *),%i)


RusselB #185729 13/09/07 06:49 AM
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Umm, if the variable is '%thevariable#chan', what's with the *?

Also, when you're unsetting it, you don't want to eval it. A simple:
Code:
unset $+(%, thevariable, $chan, *)
  OR//
unset % $+ thevariable $+ $chan $+ *

is sufficient to unset all '%thevariable#chan<whatever>' variables.


Link Copied to Clipboard