Page 1 of 1

Advanced Alias

Posted: Mon Sep 06, 2004 5:00 am
by adam15906
I currently have this command:

/msg ChanServ access #Channel add/del/list [nick] [level]

I would like to use an alias like /access.

Would something like this work

Code: Select all

alias access {
	format "^add" {
		nick ChanServ;
		type services;
		parameters "ACCESS %1 add %3 %4";
	};
"LIFE GOES ON..... and so does this block"
	format <regex-expression> {
		...
	};
	type command;
};

Posted: Mon Sep 06, 2004 5:21 am
by aquanight
hm...
You mean:
/access add #channel nick level
?

if so, you need %2, not %1

Yeah your right.

Posted: Mon Sep 06, 2004 5:29 pm
by adam15906
See I wasn't sure if /command was considered %1 or the next one was. Because some scripting is different then others.

Posted: Mon Sep 06, 2004 6:48 pm
by codemastr
The command is NOT considered %1, but that's not the issue.

Code: Select all

/access add #channel nick level 
         %1    %2     %3    %4
What you are doing would do "ACCESS add add nick level"