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.
Op Alias
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Re: Op Alias
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"
Your command would need to be /op #channel user
Your parameters would need to be "%1 +o %2"
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Re: Op Alias
Also, your regex would need to require 2 parameters, like "^[^ ]+ [^ ]+$"
-
- Posts: 5
- Joined: Mon Oct 29, 2012 9:23 am
Re: Op Alias
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.