Page 1 of 1

Aliases

Posted: Fri Dec 28, 2007 12:46 pm
by AscIId
Hi guys. I run U32 and Anope for a large forum and not all the users are able to use anope properly, so i was thinking about making a few aliases for simplifying the commands but i am stuck as I am not to fluent in Raw IRC.

requested example...

Code: Select all

/addmember %s

to

Code: Select all

MSG chanserv ACCESS #channel ADD %s 3
if you could just give me an example of what to write in aliases.conf that would be great...

Thanks
Jay

Re: Aliases

Posted: Fri Dec 28, 2007 7:00 pm
by Stealth

Code: Select all

alias addmember {
  format "#.+" {
    target chanserv;
    type services;
    parameters "ACCESS %1 ADD %2 3";
  };
};
This is the closest you will get. The usage of this command will be: /addmember #channel nick

Re: Aliases

Posted: Sat Dec 29, 2007 11:37 am
by AscIId
thanks mate.

ok and if i want if for a single channel

Code: Select all

alias addmember {
  format "+" {
    target chanserv;
    type services;
    parameters "ACCESS #x ADD %1 3";
  };
};
right?

Re: Aliases

Posted: Sat Dec 29, 2007 1:44 pm
by Jobe
Make format "+" into format ".+"

Re: Aliases

Posted: Sun Dec 30, 2007 12:43 pm
by AscIId
Thanks guys. I got it to work
*** Notice -- Configuration loaded without any problems ..
Just a little note. You forgot to add the

Code: Select all

type command;
Outside of the format block. I worked it out after a couple of failed rehashes. :P