mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 14
N
namnori Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2002
Posts: 14
Is anyone else spend a lot of time adding [ $+ [ $cid ] ] to variable names to make things work properly across multiple connections?
Maybe there should be a different prefix, instead of '%', to limit a variable's scope to the $cid in which it was called.

Joined: Dec 2002
Posts: 24
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 24
What's tyhe difference if the variable prefix was '%' or somethign else? I don't see the point of your suggestion =\

Plus, if you changed the prefix of a variable, do you have any idea how many scripts that would break lol

Regards,


-DarkStarX
"If at first you don't succeed, sky diving's not for you."
Joined: Dec 2002
Posts: 66
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 66
I'd just prefer a different method of making global variables (ie, specifiying them to be), otherwise they'd all defautly assume the local scope.



- Linux System Administrator, Darktides Communications, LLC.
Joined: Dec 2002
Posts: 30
A
Ameglian cow
Offline
Ameglian cow
A
Joined: Dec 2002
Posts: 30
So just make your own set alias, thats the purpose of scripting.
alias mset set $+($1,.,$cid) $2-
/mset %huh wut
%huh.1 wut


Link Copied to Clipboard