Advanced Alias

These are old archives. They are kept for historic purposes only.
Post Reply
adam15906
Posts: 15
Joined: Wed Aug 25, 2004 1:36 pm
Location: PA,USA
Contact:

Advanced Alias

Post 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;
};
One Love!
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

hm...
You mean:
/access add #channel nick level
?

if so, you need %2, not %1
adam15906
Posts: 15
Joined: Wed Aug 25, 2004 1:36 pm
Location: PA,USA
Contact:

Yeah your right.

Post by adam15906 »

See I wasn't sure if /command was considered %1 or the next one was. Because some scripting is different then others.
One Love!
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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"
-- codemastr
Post Reply