required variables in aliases ($$1) error message - 09/11/03 12:54 PM
(aliases)
blah {
echo -a BLAH! $$1-
}
when called
/blah asd qwe zxc
it'll echo "BLAH! asd qwe zxc"
but when you type
/blah
nothing will happen, since $1 isnt specified.
is it possible to add a custom message, similar to the default mIRC error messages?
eg.
* Too few parameters: $blah
or
* * /blah: invalid parameters
blah {
echo -a BLAH! $$1-
}
when called
/blah asd qwe zxc
it'll echo "BLAH! asd qwe zxc"
but when you type
/blah
nothing will happen, since $1 isnt specified.
is it possible to add a custom message, similar to the default mIRC error messages?
eg.
* Too few parameters: $blah
or
* * /blah: invalid parameters