mIRC Homepage
Posted By: RiMaJoy max. same aliases - 18/02/10 04:55 AM
hi,

Is there a max on the same aliases in mirc?
I have add a language script to my mirc and all my addon have a own language file.
In every script i put an alias that points to the language file but somehow after a few aliases it stopped working.
If i change the alias sign it works again.

All scripts have this:
Code:
alias _ { return $read($langdir $+ te.lng,s,$1) }


Ofcourse the filename is different in every script.

Greetsss,
RiMaJoy
Posted By: genius_at_work Re: max. same aliases - 18/02/10 05:59 AM
If you want each alias to be local to the script file that it is in, you can use the -l (lowercase L) switch when declaring the alias. Example:

alias -l _ { return ... }

The above alias would only be accessible from within its script file. Each script can then have its own _ alias without interfering with the _ aliases in other script files.

-genius_at_work
Posted By: DJ_Sol Re: max. same aliases - 18/02/10 10:50 PM
Otherwise you have to rename them. mIRC will use the first alias it finds starting in the alias section then moving through your file list starting at file 1.

So in your case mirc was executing the first matching alias it found.
Posted By: RiMaJoy Re: max. same aliases - 20/02/10 09:23 PM
-l does the job.

after loaded a few addons mirc was trying to use 2 or perhaps more addons at once.
That is why i had no text because mirc was using the alias already.
Renaming them would mean going by all scripts and find all commands and rename them as well.
Lots and lots of work.

Poblem is fixed thanks for helping
Posted By: Riamus2 Re: max. same aliases - 20/02/10 10:17 PM
That's why it's a good idea to name aliases (and variables) with unique names that are unlikely to be used by any other scripts.
© mIRC Discussion Forums