mIRC Home    About    Download    Register    News    Help

Print Thread
#125990 24/07/05 02:37 AM
Joined: Jul 2005
Posts: 5
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Jul 2005
Posts: 5
I have a script which I use in several channels. The fact that variable can all be seen in all channels is a problem. It would be nice to be able to specify that a variable be visible only in the channel that the script is currently working for. In fact, three designations might be useful; local for current channel, regional for all channels of one net, and global for the current visibility.

#125991 24/07/05 06:10 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I admit this could be a nice idea. I'm currently going through all my scripts and changing the variables so that my scripts can be used in multiple channel and/or over multiple connections. If this idea was implemented (as I understand it), then I'd be greatly in favour of it, as it would allow people to write code that works in one channel, then easily adapt it for multiple channels.

#125992 24/07/05 07:33 AM
Joined: Feb 2004
Posts: 206
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Feb 2004
Posts: 206
How about % $+(var,chan_name) and evaluate that?

Cheers,

DK


Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!
#125993 25/07/05 03:54 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
what he said.

in a case like this, i think implementation effort on khaleds part would only match the extreme laziness on the scripter's end. ie. it's already easy enough to name a variable appropriately for a channel. The syntax won't get much easier than what DK posted


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard