mIRC Homepage
Posted By: c0ldfusi0n Aliases. - 13/07/03 03:57 AM
There's three way to list an alias:

1) $isalias(name).alias
2) Using $read and $isalias(name).fname
3) Opening the editor.

$isalias(name).alias only returns the first line of an alias, that's something you probably all know. Exemple:
Code:
/blah {
  if (%blah) { return $true }
  else { return $false }
}

Now if we try to //echo $isalias(blah).alias, this is what we will get:
{
Since it only reads the first line.
I think that making $isalias(name).alias return the whole alias would be quite useful.
Posted By: Raccoon Re: Aliases. - 13/07/03 08:32 AM
Not if that alias is over 950 characters.

Perhaps if there was a second parameter for life number.
$isalias(name,N).alias

- Raccoon
Posted By: feud Re: Aliases. - 13/07/03 03:20 PM
this snippet from ms.org echos your code.. with a few modifications, it could work for your needs.

link
Posted By: codemastr Re: Aliases. - 13/07/03 03:39 PM
That script doesn't work correctly for aliases contained in the aliases.ini:

Found op on line in aliases.ini.
/mode # +ooo $$1 $2 $3

Note how it doesn't show the line number there, and if you try and use a multi-line alias in aliases.ini:

Found testalias on line in aliases.ini.
{

So it suffers from similar problems to $isalias.
Posted By: c0ldfusi0n Re: Aliases. - 13/07/03 03:56 PM
Yeah, i saw that code -- it only works for aliases contained in remotes, as codemastr said.

$isalias(name,N).alias would be good i guess, it could easily be looped through.
Posted By: Deamer Re: Aliases. - 13/07/03 09:19 PM

I'm working on adding support for non-remote aliases and local aliases. I'll post it on ms.org when i'm done.

I agree with your suggestion tough, i think it'd be better if this were to be added.
© mIRC Discussion Forums