Page 1 of 1
Specifiers
Posted: Fri Oct 28, 2005 7:02 pm
by Azza
Are there any other specifiers than %n?
Posted: Sat Oct 29, 2005 3:18 am
by Jason
Specifiers for what?
Posted: Sat Oct 29, 2005 7:14 am
by Azza
for in conf files alliases e.g
alias "Bob" {
format "^#" {
target "Bob";
type services;
parameters "4BOB 8%N: %1-";
};
format "^[^#]" {
target "Bob";
type services;
parameters "4BOB 8%N: %1-";
};
type command;
};
Posted: Sat Oct 29, 2005 7:36 am
by Stealth
And the documentation says:
To specify all parameters from a given parameter to the end do % followed by the number and a -, for example %2- returns all parameters from the second till the last. Additionally, you may specify %n which will be replaced by the nickname of the user who executed the command. For examples of using the alias block in the command format, consult doc/example.conf.
Posted: Sat Oct 29, 2005 8:31 pm
by Azza
so no is the answer?
Posted: Sat Oct 29, 2005 9:18 pm
by Jason
The answer is yes. In addition to %n, you have %1, %2, %3, %4, %5... and you also have %1-, %2-, %3-, %4-, %5-...
Those are all.
Why are you using an alias block with the format features if you make them do the exact same thing? Use one without the format features. READ THE DOCUMENTATION to see how to do this.
Posted: Sat Oct 29, 2005 10:54 pm
by Azza
ty
just trying to find out what can/can't be done
Posted: Sun Oct 30, 2005 3:07 am
by Jason
The documentation will tell you all of that. In fact I told you less than it did.