Aliases

These are old archives. They are kept for historic purposes only.
Post Reply
AscIId
Posts: 3
Joined: Fri Dec 28, 2007 12:41 pm

Aliases

Post 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
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Aliases

Post 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
AscIId
Posts: 3
Joined: Fri Dec 28, 2007 12:41 pm

Re: Aliases

Post 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?
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Aliases

Post by Jobe »

Make format "+" into format ".+"
Your IP: Image
Your Country: Image
AscIId
Posts: 3
Joined: Fri Dec 28, 2007 12:41 pm

Re: Aliases

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