Op Alias

These are old archives. They are kept for historic purposes only.
Post Reply
Chrisnetika
Posts: 5
Joined: Mon Oct 29, 2012 9:23 am

Op Alias

Post by Chrisnetika » Mon Oct 29, 2012 11:55 am

My 1st post here.. sup
Question regarding alias.. I can understand the format/regex portion of it but trying to copy alias from mibbit where I can op someone by command "/op someone"
I know the full command is /mode #Chan +o Someone
param1 would be #Chan and Param2 would be someone, so %1 and %2?

was trying this and was closest I got

alias op {
format ".+" {
command mode;
type real;
parameters "+o %2";
};
type command;
};

just not sure if format is right and how to arrange params :/.I spent 2 days googling "/op alias unrealircd" "setting op via alias" and "/mode +o alias unrealircd" .. results came up .. just not ones im looking for.

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Op Alias

Post by Stealth » Mon Oct 29, 2012 11:27 pm

This is not possible without including the channel name.

Your command would need to be /op #channel user

Your parameters would need to be "%1 +o %2"

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Op Alias

Post by Stealth » Mon Oct 29, 2012 11:28 pm

Also, your regex would need to require 2 parameters, like "^[^ ]+ [^ ]+$"

Chrisnetika
Posts: 5
Joined: Mon Oct 29, 2012 9:23 am

Re: Op Alias

Post by Chrisnetika » Tue Oct 30, 2012 2:29 am

Thanks for the reply stealth.. ill play around with those settings.Can't understand how mibbit able to do it... unless they adding the chan in and I don't know it.

Post Reply